Diagram
  • Introduction
  • Get Started
    • Hello World
    • Connecting to a DB
    • From a template
  • Concepts
    • Endpoints
    • Algorithm
  • Nodes
    • Bcrypt
    • Code
    • Constant
    • Database
    • EasyDB
    • Firestore
    • If / Then
    • Request
    • Response
    • JWT
    • Mapper
    • MongoDB
    • Stripe
    • Webhook
  • Templates
    • Login
    • Register
    • Get User
  • Resources
    • Dashboard
    • Contact
    • FAQs
Powered by GitBook
On this page
  • General
  • Input
  • Output
  • Use Cases

Was this helpful?

  1. Nodes

MongoDB

PreviousMapperNextStripe

Last updated 3 years ago

Was this helpful?

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 .

  • Options: (optional) Receives an Object with options for the operation. Learn more on .

CASE: Insert / Many

  • Data: Receives an array of Object with the data to insert to the collection. Learn more on .

  • Options: (optional) Receives an Object with options for the operation. Learn more on .

CASE: Find / One

  • Filter: Receives an Object with the query selection criteria. Learn more on .

  • Options: (optional) Receives an Object with options for the operation. Learn more on .

CASE: Find / Many

  • Filter: Receives an Object with the query selection criteria. Learn more on .

  • Options: (optional) Receives an Object with options for the operation. Learn more on .

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

CASE: Find / Many

CASE: Update / One

CASE: Update / One (Replace)

CASE: Update / Many

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)

Filter: Receives an Object with the query selection criteria. Learn more on .

Data: Receives an array of Object with the data to update to the collection. Learn more on .

Options: (optional) Receives an Object with options for the operation. Learn more on .

Filter: Receives an Object with the query selection criteria. Learn more on .

Data: Receives an array of Object with the data to update to the collection. Learn more on .

Options: (optional) Receives an Object with options for the operation. Learn more on .

Filter: Receives an Object with the query selection criteria. Learn more on .

Data: Receives an array of Object with the data to update to the collection. Learn more on .

Options: (optional) Receives an Object with options for the operation. Learn more on .

Filter: Receives an Object with the query selection criteria. Learn more on .

Options: (optional) Receives an Object with options for the operation. Learn more on .

Filter: Receives an Object with the query selection criteria. Learn more on .

Options: (optional) Receives an Object with options for the operation. Learn more on .

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 .

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 .

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 .

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 .

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 .

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 .

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 .

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

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

mongodb.collection.insertOne
mongodb.collection.insertOne
mongodb.collection.insertMany
mongodb.collection.insertMany
mongodb.collection.findOne
mongodb.collection.findOne
mongodb.collection.insertMany
mongodb.collection.insertMany
mongodb.collection.updateOne
mongodb.collection.updateOne
mongodb.collection.updateOne
mongodb.collection.replaceOne
mongodb.collection.replaceOne
mongodb.collection.replaceOne
mongodb.collection.updateMany
mongodb.collection.updateMany
mongodb.collection.updateMany
mongodb.collection.deleteOne
mongodb.collection.deleteOne
mongodb.collection.deleteMany
mongodb.collection.deleteMany
mongodb.collection.insertOne
mongodb.collection.insertMany
mongodb.collection.findOne
mongodb.collection.findMany
mongodb.collection.updateOne
mongodb.collection.replaceOne
mongodb.collection.updateMany
mongodb.collection.deleteOne
mongodb.collection.deleteMany