I have a mongoose model that has an association with a user model e.g.
var exampleSchema = mongoose.Schema({ name: String,
_ = require("underscore") var model = new Example(_.extend({ userId: req.user._id }, req.body))
or if you want to copy userId into req.body:
var model = new Example(_.extend(req.body, { userId: req.user._id }))