How does one load hasMany associations for an entire set at once?
Given User who hasMany Memberships, if the User json payload includes membership_ids for each… It’s trivial to grab a single user and get memberships, which makes a request with ids=1,2,3,4,etc
But how does once combine all the membership requests for the entire set of users to request the memberships in a single request?
I was hoping for something like this.get(‘users.@each.memberships’).then(…) but alas, that’s no good.
Thanks in advance!