Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Why do we use "links" object to specify relationship locations instead of adapters

$
0
0

@Baumer wrote:

I do not understand why Ember Data uses the links object in a serialized payload to find out where the related model resources are located. Passing through the related model ids makes sense to me, but passing through the actual resource location seems like an anti-pattern. Isn't this the responsibility of an adapter to specify the location of a resource? What's even more frustrating, and was the source of some hair pulling for me, was that specifying the location of a related resource bypasses the adapter calls all together.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles