Closed dreamsbond closed 6 years ago
seems like i got the trick now.
model.getRelationship(model.getDocument())
but this is based on included scenario. would like to know more about resolving promise.
if i does not specify "include=relationship-a,relationship-b" how does mosh-jsonapi work on resolving promise?
thanks
What's a "promise"?
The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.
The library only handles object mappings in serialization/deserialization of JSON API objects for simplicity. So it does nothing with interacting with the server.
A general advice to this is to create a request to server retrieving all related resource objects and resolve the linkage with the context from that request.
thanks. yeah. i think having parsing "included" did the job.
No idea how to get there out. Could you help?