By default, changes needs to be watched to know what to send on the .save() of a record, in the case the Mapper has keepChangeHistory disabled, all attributes and parent relations will be send when using save and the whole params object will be sent when using update.
Update using PATCH by default unless
usePatch: false
is given to the adapter parameter.Proposed implementation
Disable
If you want to force using PUT instead of PATCH
Update with PATCH:
It will send only modified attributes (the name)
or
Force replace
To force the replace and use of PUT method (all attributes and parent relations will be sent):
or
Requirements
By default, changes needs to be watched to know what to send on the
.save()
of a record, in the case the Mapper has keepChangeHistory disabled, all attributes and parent relations will be send when usingsave
and the whole params object will be sent when usingupdate
.Référence
http://jsonapi.org/format/#crud-updating