---
title: "Discussion on \"How to add data in MongoDB?\" | Hashnode"
description: "Discussion on \"How to add data in MongoDB?\". To insert a single document, use db.collection.insertOne() and To insert multiple documents, use db.collection.insertMany()"
url: "https://hashnode.com/posts/how-to-add-data-in-mongodb/63427843ba6f2f01c75bbdb3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add data in MongoDB?](https://rajamuhammadasher.com/how-to-add-data-in-mongodb?utm_source=hashnode&utm_medium=feed)

To insert a single document, use db.collection.insertOne() and To insert multiple documents, use db.collection.insertMany()

Jun 10, 2022 · 1 min read · rajamuhammadasher.com  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

  
[View profile](https://hashnode.com/@rajamuhammadasher)

Full Stack Developer

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating &amp; making a difference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
