Skip to content
BigBoxCode
  • Home
  • Fundamental
    • Design Patterns
    • Design Principles
    • Data Structures
  • Programming
    • JavaScript Programming
    • Laravel Framework
    • Server-Sent Events(SSE)
    • Python Programming
    • PHP Programming
  • Database
    • MySQL
    • Redis
    • MongoDB
  • DevOps
    • Linux Fundamentals
    • Linux Commands
    • Docker
  • All Tutorials

MongoDB Write Method

MongoDB Method: db.collection.insertMany()

July 8, 2024February 16, 2024 by BigBoxCode

Insert multiple documents to collection. We provide an array of documents, and each of those documents are added to the collection.

Categories MongoDB Tags MongoDB Method, MongoDB Write Method Leave a comment

MongoDB Method: db.collection.insertOne()

July 8, 2024February 10, 2024 by BigBoxCode

Insert one document to collection. This command is recommended if we just need to add only one document. If the collection does not already exist, then a collection will be created first when we apply this insertOne() method.

Categories MongoDB Tags MongoDB Method, MongoDB Write Method Leave a comment
  • Tutorials
  • Design Patterns [classic/core patterns for OOP]
  • Design Principles
  • Data Structures
  • Server-Sent Events(SSE)
  • MySQL Tutorials
  • Redis Tutorials
  • MongoDB Tutorials
  • JavaScript Programming
  • PHP Programming
  • Laravel Framework
  • Python Programming

Sponsors

  • About
  • Contact
  • Privacy Policy
  • Disclaimer
  • All Tutorials
  • Sitemap
  • Resources
  • RSS Feed
  • GitHub
  • Linkedin
  • Youtube
© 2025 BigBoxCode