MongoDB atomic “findOrCreate”: findOne, insert if nonexistent, but do not update

kei2100kei2100 のブックマーク 2021/01/18 14:48

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

MongoDB atomic "findOrCreate": findOne, insert if nonexistent, but do not update

    as the title says, I want to perform a find (one) for a document, by _id, and if doesn't exist, have it created, then whether it was found or was created, have it returned in the callback. I don't ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう