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

JSONAPI Serializer and hasMany saving

$
0
0

@milk242 wrote:

Hi All,

If I have a model like this:

View Model:
DS.Model.extend({
    properties: DS.hasMany('property')
})

Property Model:
DS.Model.extend({
    value: DS.attr('string'),
    view: DS.belongsTo('view')
})

In the app I populate the value in the Property Model and then on route transition I save the View Model, the properties associated with the View does not include the value data. Is there really no way for JSON API to handle this case without having to iterate over all the properties of the view and saving them individually?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles