MongoDB
General
The MongoDB
node allows to create, read, update and delete objects on any instance of Mongo DB.
Input
CASE: Insert / One
Data: Receives an
Object
with the data to insert to the collection. Learn more on mongodb.collection.insertOne.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.insertOne.
CASE: Insert / Many
Data: Receives an array of
Object
with the data to insert to the collection. Learn more on mongodb.collection.insertMany.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.insertMany.
CASE: Find / One
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.findOne.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.findOne.
CASE: Find / Many
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.insertMany.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.insertMany.
CASE: Update / One
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.updateOne.Data: Receives an array of
Object
with the data to update to the collection. Learn more on mongodb.collection.updateOne.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.updateOne.
CASE: Update / One (Replace)
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.replaceOne.Data: Receives an array of
Object
with the data to update to the collection. Learn more on mongodb.collection.replaceOne.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.replaceOne.
CASE: Update / Many
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.updateMany.Data: Receives an array of
Object
with the data to update to the collection. Learn more on mongodb.collection.updateMany.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.updateMany.
CASE: Delete / One
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.deleteOne.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.deleteOne.
CASE: Delete / Many
Filter: Receives an
Object
with the query selection criteria. Learn more on mongodb.collection.deleteMany.Options: (optional) Receives an
Object
with options for the operation. Learn more on mongodb.collection.deleteMany.
Environment variables:
mongodb: Requires Connection String to be set.
Output
****
CASE: Insert / One
Out: Returns an
Object
containing, aBoolean
indicating write concern and aString
insertedId with the _id value of the inserted document. Learn more on mongodb.collection.insertOne.
CASE: Insert / Many
Out: Returns an
Object
containing, aBoolean
indicating write concern and aString
insertedId with the _id value of the inserted document. Learn more on mongodb.collection.insertMany.
CASE: Find / One
Out: Returns an
Object
that satisfies the query criteria which contains aString
with the _id field. If you specify a projection parameter, it contains the projection fields. Learn more on mongodb.collection.findOne.
CASE: Find / Many
Out: Returns an array of
Object
that satisfies the query criteria which contains aString
with the _id field. If you specify a projection parameter, it contains the projection fields. Learn more on mongodb.collection.findMany.
CASE: Update / One
Out: Returns an
Object
, containing aNumber
with the number of matched documents, aNumber
with the number of modified documents, aString
with the _id of the inserted document and aBoolean
indicating write concern. Learn more on mongodb.collection.updateOne.
CASE: Update / One (Replace)
Out: Returns an
Object
, containing aNumber
with the number of matched documents, aNumber
with the number of modified documents, aString
with the _id of the inserted document and aBoolean
indicating write concern. Learn more on mongodb.collection.replaceOne.
CASE: Update / Many
Out: Returns an
Object
, containing aNumber
with the number of matched documents, aNumber
with the number of modified documents, aString
with the _id of the inserted document and aBoolean
indicating write concern. Learn more on mongodb.collection.updateMany.
CASE: Delete / One
Out: Returns an
Object
containing, aBoolean
indicating write concern and aNumber
with the number of deleted documents. Learn more on mongodb.collection.deleteOne.
CASE: Delete / Many
Out: Returns an
Object
containing, aBoolean
indicating write concern and aNumber
with the number of deleted documents. Learn more on mongodb.collection.deleteMany.
Use Cases
Retrieve a document from the database.
Request (Get) ➡ MongoDB (Get) ➡ Response (200)
Update a document from the database.
Request (Post) ➡ MongoDB (Post) ➡ Response (200)
Last updated
Was this helpful?