PyMongo

Insert

  • Insert syntax

    • insert_one: insert a one single document

    • insert_many: insert multiple documents

collection.insert_one(<document>)
collection.insert_many([<docuemtn1>, <document2>, ...])
collection.insert(<document>)    # Deprecated

Last updated