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.
コレクションを使って新しいオブジェクトを挿入したとき、挿入が成功したかどうかを調べる方法があれば教えていただきたいです。
1 回の操作で挿入 (オブジェクト)。
つまり、データベースに別のクエリを送信して、レコードがあるかどうかを確認したくないということです。1 つのアトミック操作 ( insert -> result (isSuccessful)- 疑似コード) が必要です。
insert -> result (isSuccessful)