How to update if exists otherwise insert new document?

前端 未结 4 1840
执笔经年
执笔经年 2020-12-02 20:14

How to update if exists otherwise insert new document in javascript/node.js? I am getting as parameter to function dictionary,if dictionary contains _id should update, othe

4条回答
提交回复
热议问题