You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use a Service to get a Resource and use include to also fetch data for relationships, I need to construct the Service for the included Resource(s) for it to work.
will return a DocumentCollection with all books, where every Book has an author relationship. But when you look at the data in this author Resource, it is empty. It does have the correct id, but attributes is a completly empty object.
Only when I also inject the AuthorsService, the attributes for the included author are loaded.
I have a similiar issue ... included resource's attributes are sometimes available and sometimes missing. (If I refresh the page 10 times about 2-3 times the attributes are missing. The ID and the type is there, but the attribues are empty.)
When I use a Service to get a Resource and use
include
to also fetch data for relationships, I need to construct the Service for the included Resource(s) for it to work.Taking the demo as example:
will return a DocumentCollection with all books, where every Book has an author relationship. But when you look at the data in this author Resource, it is empty. It does have the correct id, but attributes is a completly empty object.
Only when I also inject the AuthorsService, the attributes for the included author are loaded.
I am not using the AuthorService anywhere, just injecting it and thus constructing it is enough.
The text was updated successfully, but these errors were encountered: