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

CASE: Insert / Many

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.findOnearrow-up-right.

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.findManyarrow-up-right.

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.updateOnearrow-up-right.

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.replaceOnearrow-up-right.

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.updateManyarrow-up-right.

CASE: Delete / One

CASE: Delete / Many

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