To overwrite the way you save and load models from the database, you can overwrite two methods.
Model.toJSON place serialization logic logic here.Model.parse post a special de-serialization logic here.
Ideally, you only have custom serialization / de-serialization logic to “optimize” the database. That is, if you have an Age and DateOfBirth , you save it only in the database in Model.toJSON and calculate the other in Model.parse .
If you need a special serialization / de-serialization logic that is NOT intended for the model, rewrite Backbone.Sync .
You can also overwrite model.Sync . This means that the model will use the custom Sync custom function and then use Backbone.Sync
source share