mongodb 4.2 Document Translation - inserted into the document

mongodb provides the following three methods to insert a new record into the document collection

  1. Insert a document
db.collection.insertOne()
  1. Insert multiple documents
db.collection.insertMany()
  1. Inserting one or more
db.collection.insert()

In addition the following method can also be inserted into the new document, conditional.

Published 22 original articles · won praise 0 · Views 2183

Guess you like

Origin blog.csdn.net/weixin_44156518/article/details/104081003