insert-many
Insert multiple documents into a MongoDB collection using an array of data. Specify the database, collection, and documents to streamline bulk data insertion processes.
Instructions
Insert an array of documents into a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
documents | Yes | The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany() |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"database": {
"description": "Database name",
"type": "string"
},
"documents": {
"description": "The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany()",
"items": {
"additionalProperties": true,
"description": "An individual MongoDB document",
"properties": {},
"type": "object"
},
"type": "array"
}
},
"required": [
"database",
"collection",
"documents"
],
"type": "object"
}