MongoDB

General

The MongoDB node allows to create, read, update and delete objects on any instance of Mongo DB.

Input

CASE: Insert / One

CASE: Insert / Many

CASE: Find / One

CASE: Find / Many

CASE: Update / One

CASE: Update / One (Replace)

CASE: Update / Many

CASE: Delete / One

CASE: Delete / Many

Environment variables:

  • mongodb: Requires Connection String to be set.

Output

****

CASE: Insert / One

  • Out: Returns an Object containing, a Boolean indicating write concern and a String insertedId with the _id value of the inserted document. Learn more on mongodb.collection.insertOne.

CASE: Insert / Many

  • Out: Returns an Object containing, a Boolean indicating write concern and a String 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 a String 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 a String 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 a Number with the number of matched documents, a Number with the number of modified documents, a String with the _id of the inserted document and a Boolean indicating write concern. Learn more on mongodb.collection.updateOne.

CASE: Update / One (Replace)

  • Out: Returns an Object, containing a Number with the number of matched documents, a Number with the number of modified documents, a String with the _id of the inserted document and a Boolean indicating write concern. Learn more on mongodb.collection.replaceOne.

CASE: Update / Many

  • Out: Returns an Object, containing a Number with the number of matched documents, a Number with the number of modified documents, a String with the _id of the inserted document and a Boolean indicating write concern. Learn more on mongodb.collection.updateMany.

CASE: Delete / One

  • Out: Returns an Object containing, a Boolean indicating write concern and a Number with the number of deleted documents. Learn more on mongodb.collection.deleteOne.

CASE: Delete / Many

  • Out: Returns an Object containing, a Boolean indicating write concern and a Number 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?