Class Serializer
Extends: | EmberObject |
---|---|
Defined in: | ../serializer/addon/index.js:7 |
Module: | @ember-data/serializer |
store public
Module: | @ember-data/serializer |
---|
Defined in ../serializer/addon/index.js:27
The store
property is the application's store
that contains all records. It can be used to look up serializers for other model types that may be nested inside the payload response.
Example:
Serializer.extend({ extractRelationship(relationshipModelName, relationshipHash) { let modelClass = this.store.modelFor(relationshipModelName); let relationshipSerializer = this.store.serializerFor(relationshipModelName); return relationshipSerializer.normalize(modelClass, relationshipHash); } });
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/3.25/classes/Serializer/properties