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.
一括更新で各ドキュメントに一意のオブジェクト ID を作成するにはどうすればよいですか?
私はもう試した、
db.foo.update({ objectId: null }, { $set: { objectId: new ObjectId() }}, { multi: true })
しかし、これにより、各ドキュメントに対して同じオブジェクト ID が得られます。