Skip to content

How to get the path for objects filtered using Pick in streamValues? #135

Closed Answered by uhop
dhwaneetbhatt asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding is that you want to preserve the overall shape of your objects. Pick picks subobjects, so the parent shape is lost obviously. To edit a token stream preserving the shape of original objects we have three tools:

  1. Filter — white-lists what properties should be preserved. The rest will be removed.
  2. Ignore — black-lists what properties should be removed. The rest will be passed through.
  3. Replace — replaces properties with different (default) values. It is rarely used but it is a foundation for Ignore.

Did you try to ignore the field in question?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dhwaneetbhatt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants