You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model sent from the server using the old REST API with embedded records. It looks like this using the old rest API.
{parent: {children: [{type: 'SOMEVALUE'}]}}
Type is an attribute of the child model.
When the child record is added to the store type is changed from 'SOMEVALUE' to 'somevalue'.
I believe this is caused by the extractRelationship method in JSONSerializer. The relationshipHash.type is sent through Ember.string.dasherize. Which works for the JSONAPI and for polymorphic types, but isn't the correct thing to do for embedded records in the old REST API.
The text was updated successfully, but these errors were encountered:
I am using Ember-data 2.0.0.
I have a model sent from the server using the old REST API with embedded records. It looks like this using the old rest API.
Type is an attribute of the child model.
When the child record is added to the store type is changed from 'SOMEVALUE' to 'somevalue'.
I believe this is caused by the extractRelationship method in JSONSerializer. The relationshipHash.type is sent through Ember.string.dasherize. Which works for the JSONAPI and for polymorphic types, but isn't the correct thing to do for embedded records in the old REST API.
The text was updated successfully, but these errors were encountered: