MongoDB Component
Interact with documents in a MongoDB database
Component key: mongoDescription
MongoDB is a NoSQL database program that uses JSON-like documents with optional schemas. This component allows you to create, read, update, and delete documents inside a MongoDB collection.
Connections
Mongo Connection
Create a new MongoDB connection and enter the connection string for your MongoDB server.
Actions
Create Index
Creates an index on the specified field in a collection | key: createIndex
Output Example Payload
{
"data": ""
}
Delete Many
Remove documents from a collection | key: deleteMany
Output Example Payload
{
"data": {
"acknowledged": true,
"deletedCount": 1
}
}
Find All
Retrieve all documents in a collection | key: findAll
Output Example Payload
{
"data": [
{
"_id": "610ae111774d8aaef3b5d2eb",
"exampleKey": "exampleValue"
}
]
}
Insert Many
Insert new documents into a collection | key: insertMany
Output Example Payload
{
"data": {
"acknowledged": true,
"insertedCount": 3,
"insertedIds": {}
}
}
Update One
Update a single document in a collection | key: updateOne
Output Example Payload
{
"data": {
"acknowledged": true,
"modifiedCount": 1,
"upsertedId": null,
"upsertedCount": 0,
"matchedCount": 1
}
}