-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add path
to Normalization API
#200
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a query for a list of objects:
And we want to normalize an
Item
to the index by which it appears initems
.One possible way of implementing it, is a second
getParent
/path
argument:path
being an array of the keys / args / data to the root of the responseand
getParent
being a function which accepts any item, and returns the key/args of the item, along with the parent item (which can be fed back in)The text was updated successfully, but these errors were encountered: