-
Notifications
You must be signed in to change notification settings - Fork 48
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
missing functionality to flatten array #10
Comments
@MrLoh I need to think about it and how to make it more readable. movie {
cast {
id
role
person @spread {
actorId: id
fullName
}
}
} What do you think? |
@MrLoh On a second thought create separate directives for every transformation is a bad idea. |
I like the spread idea, it's just a very common task in graphql I think, that's missing from lodash. |
This would probably be best covered by #9 as well, maybe we should close this? |
@MrLoh Agree 🎉 |
I have the following query:
Now I would like to flatten the cast into an array of not-nested objects.
It seems like lodash can't do that. Would be nice to add a functionality, maybe like:
I could create a PR, with a little help as to how transformations need to look like.
The text was updated successfully, but these errors were encountered: