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

Embedded records on GET only

$
0
0

@Bauke wrote:

Using the EmbeddedRecordsMixin, I've create a serializer for a certain model and added embedded: 'always' for all its relationships. It works! When I send a GET request to the server, I receive all relations embedded in the payload and Ember Data knows how to deal with it.

But I only want the relation to be embedded in a GET payload, and not in the parameters of a POST or PUT request.

I've been looking in the documantation but I can't find out how to solve this.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles