Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバー側の機能をMongoDBに保存しようとしています(クライアント側から)
例から、私はこれを試しています:
db.system.js.save({_id: "sum", value: function (x, y) { return x + y; }});
しかし、それはうまくいきません。私は Mongoose を使用しているので、プレーンな Mongo DB オブジェクトのラッパーがあるかどうかはわかりません。