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

How do i read relationships between two tables #148

Closed habatmu-birhanu closed 5 years ago

habatmu-birhanu commented 5 years ago

I can see that server is responding the resources with their relations but i cant access the relation data through the relationship object

Any help will be appreciated

maxi7587 commented 5 years ago

Hi! Can you post an example of the resource with its relationships?

a-radys commented 5 years ago

I had similar issue when getting a single resource. Apparently there is sth wrong with get method, because changing get to all solved the problem.

maxi7587 commented 5 years ago

Hi @aradys and @habatmu-birhanu ! Can you send an example of the resources and services so I can try to debug and solve this issue?

pablorsk commented 5 years ago

problem solved on 2.1.15 https://github.com/reyesoft/ngx-jsonapi/pull/217/files#diff-b51fd02abd23a9828cff88e6483f42daR364-R369