Can I have a named array of fields?
drFabio opened this issue · 2 comments
drFabio commented
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 commented
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 commented
Thanks.