I've been trying to store server side functions in MongoDB (from the client side)
I'm trying this, from the examples:
db.system.js.save({_id: "sum",
value: function (x, y) { return x + y; }});
But that does not work. I am using Mongoose, so I don't know if it has a wrapper around the plain Mongo DB object.