I think you need instance methods? Is this what you had in mind with Schema methods? If so, you can do something like:
var mySchema = new Schema({ name: { type: String }, createdAt: { type: Date, default: Date.now } }); mySchema.methods.changedName = function() { return this.name + 'TROLOLO'; } Something = mongoose.model('Something', mySchema);
With this you can:
Something.findOne({ _id: id }).exec(function (error, something) { something.changedName(); });
source share