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.
空の ObjectId で保存するにはどうすればよいですか。まだどのユーザーにもアタッチされていないアイテムを作成したいです。したがって、所有者は空の ObjectId でなければなりません。
これを行う方法?
所有者を必須フィールドにした場合は、値を設定する必要があります。そうしないと、保存時に null または未定義のままにすることができます。