Backbone.js/express.js parameters for model.save()

Viewed 6761

I'm using Backbone.js on the client and node.js on the backend, and I'm having a bit of trouble doing a 'limited' model save, as explained here : http://backbonejs.org/#Model-save

As in the example, if I do

book.save({author: "Teddy"});

how do I access the parameters of the save using express.js, i.e. the fact that I only want to save to the 'author' field? I've tried the following

req.body -> gives ALL parameters of the model being saved, I want only the 'author' field
req.query -> empty

Any help much appreciated!

3 Answers
Related