Closed lordplagus02 closed 8 years ago
Yes, and we're working on the feature. As of 1.0.16, the library simply parses relationships to linkage object(s) and does not resolve a relationship to it's resource representation.
BTW, we're working on version 2.x of moshi-jsonapi with relationship resolve.
Checkout new feature in 2.0.1 and the issue should now be closed 🍻
In this scenario, I have a
Client
class and aContact
class, and a relationship such thatClient
has a fieldprivate ArrayList<Contact> Contacts;
. My API returns aClient
with its list ofContacts
as an included resource. Is it possible to somehow retrieve the included resources usingresource.relationships()
? There does not appear to be much documentation on working with object relationships in moshi.