reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Is deep nested inclusion supported by this library? #170

Closed wojo1206 closed 5 years ago

wojo1206 commented 5 years ago

I wonder if deep nested inclusion is supported by this library.

In url api/v1/parts/1?include=items.main.vendor I receive all relevant items, its main and the main's vendor in json response. I also setup proper relationship on all relevant JS services. The resulted part model has data for items but items has missing data for main and there is no vendor in relationships at all under main.

Do you have a working example of such relationship?

wojo1206 commented 5 years ago

Focusing on res.fill({ data: dataresource } /* , included_resources */); // @todo check with included resources? at src/document-collection.ts:43

wojo1206 commented 5 years ago

I gave up and used https://github.com/ghidoz/angular2-jsonapi which already supports deep nested includes.