ember-data-partial-model
How to use - custom serializer
import Ember from 'ember';
import baseSerializerMixin from 'ember-data-partial-model/mixins/base-
serializer';
const { Mixin } = Ember;
export default Mixin.create(baseSerializerMixin, {
_normalizePartialRelationship: function(modelClass, resourceHash,
descriptor) {
// add this function to handle normalization of partial extension as
a relationship.
},
_copyAttributesFromPartialToParent: function(serializedHash,
partialHash) {
// add this function to handle copying attributes from partial
extension to top-level hash.
},
});