-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to transform object in mapper function #254
Comments
I'm not sure I understand the context for this. Can you add an example of how it would work with an expression? |
Hi Matt, Thanks! I see that your expression language supports the use of a mapping function through
And I want to manipulate the high value in each object with a + 1, would I be possible to do that with the map function to return the array of objects with the manipulated objects? Like this:
Thanks! |
Thanks, I see what you mean now. Support for objects right now is pretty limited, so I don't see a way to do that. It is possible with a JavaScript function that you pass into the expression (or add to the
|
Would it be possible to create a mapper function that returns a new object with new values?
Like we would do in JS:
.map((d) => ({a: d.alpha, b: d.beta}));
Which would return:
{ a: 'alpha_val', b: 'beta_val' }
Thanks!
The text was updated successfully, but these errors were encountered: