-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
extractAttributes
deletes keys from the payload object.
This means when calling extractId
, the developer can only read the updated object.
The call order could be changed to allow extractId to use the full incoming object.
Datas json-api serializer does it like this:
id: this.extractId(modelClass, resourceHash),
type: this._extractType(modelClass, resourceHash),
attributes: this.extractAttributes(modelClass, resourceHash),
relationships: this.extractRelationships(modelClass, resourceHash)
Ramblurr
Metadata
Metadata
Assignees
Labels
No labels