angular2-jsonapi icon indicating copy to clipboard operation
angular2-jsonapi copied to clipboard

Querying nested resources

Open bmayen opened this issue 9 years ago • 4 comments

Is there anyway to query nested resources like authors/1/books/2/reviews/3?

bmayen avatar Oct 27 '16 15:10 bmayen

Is this possible?

marcguilera avatar Apr 29 '17 02:04 marcguilera

Not yet, I currently have only limited time on my hands and this feature would probably require a lot of thinking how this should be done. If there is interest I would appreciate a rough idea of how such a method would look like.

HennerM avatar Aug 25 '17 13:08 HennerM

@HennerM I have some time and can help with this, since I'll probably need it anyway. Any idea where to start? How should we setup this kind of nested structure without breaking the current solution?

RicardoNeves avatar Sep 08 '17 21:09 RicardoNeves

Actually, fetching relationships described in http://jsonapi.org/format/#fetching-relationships. So, url will look like authors/1/relationships/books in this case.

voronizer avatar Nov 26 '17 14:11 voronizer