Skip to content
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

Can I have a named array of fields? #13

Closed
drFabio opened this issue Dec 4, 2016 · 2 comments
Closed

Can I have a named array of fields? #13

drFabio opened this issue Dec 4, 2016 · 2 comments

Comments

@drFabio
Copy link

drFabio commented Dec 4, 2016

Hello, I noticed that I can have an array of integers on path set like so>

'genrelist[{integers:indices}].titles.push'

But there isn't an example for the same using names:

route: "titlesById[{integers:titleIds}]['userRating', 'rating']"

Is it possible for having in the example above "userRating" and "rating" as something named?

@sdesai
Copy link
Contributor

sdesai commented Dec 7, 2016

Yes. That should work as exactly as you've typed it.

Here's a similar example from the router walkthrough

route: "titlesById[{integers:titleIds}]['name','year']"

@drFabio
Copy link
Author

drFabio commented Dec 7, 2016

Thanks.

@drFabio drFabio closed this as completed Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants