Skip to main content

MongoDB Connector

MongoDB Interact with documents in a MongoDB database

Connections

Mongo Connection

Authenticate requests to a MongoDB server.

InputCommentsDefault
Cluster Connection StringThe connection string to use for connecting to a Mongo cluster. From the "Database Deployments" screen, click "Connect" next to a cluster to view the connection string. Refer to https://www.mongodb.com/docs/manual/reference/connection-string/ for details on format and configuration options.
DatabaseThe name of your database.
CollectionThe name of your collection.
Use Mongo v4Use the older NodeJS v4 driver which is compatible with older MongoDB installations. This component defaults to using the v6 NodeJS driver.false

Actions

Aggregate

Performs an aggregation operation using the provided aggregation pipeline.

InputCommentsDefault
Connection
Aggregation PipelineAn array of aggregation pipeline stages that process documents in the collection.
Aggregation OptionsProvide key and value pairs to configure the aggregation operation.

Convert Object ID

The Object ID is a unique identifier for a document in a MongoDB collection. This action takes either a string ID or Object ID object, and returns both the ObjectID '_id' and stringified ID versions of the ID which can be used in subsequent actions.

InputCommentsDefault
Object IDThe ID to convert to an Object ID.

Delete Many

Remove documents from a collection that match a query.

InputCommentsDefault
Query FieldsFilters are used to narrow down the results of a query, or to determine which documents to update or delete. For example, you can search for documents whose key "firstName" is "John". To search by ID, provide a key of "_id". Use the "Comparison Operator" input to specify the type of comparison to perform if needed.
Connection

Find All

Retrieve all documents in a collection that match a query.

InputCommentsDefault
Query FieldsFilters are used to narrow down the results of a query, or to determine which documents to update or delete. For example, you can search for documents whose key "firstName" is "John". To search by ID, provide a key of "_id". Use the "Comparison Operator" input to specify the type of comparison to perform if needed.
Comparison OperatorThe comparison operator to use when filtering documents. Use this field in conjunction with the "Query Fields" input.
Convert Values to NumbersIf true, number values detected in the "Query Fields" input will be converted to numeric types.false
Connection
LimitThe maximum number of documents to return.
SkipThe number of documents to skip when paginating.

Find One

Retrieve one document in a collection that match a query. If no document is found, an error is thrown.

InputCommentsDefault
Query FieldsFilters are used to narrow down the results of a query, or to determine which documents to update or delete. For example, you can search for documents whose key "firstName" is "John". To search by ID, provide a key of "_id". Use the "Comparison Operator" input to specify the type of comparison to perform if needed.
Comparison OperatorThe comparison operator to use when filtering documents. Use this field in conjunction with the "Query Fields" input.
Convert Values to NumbersIf true, number values detected in the "Query Fields" input will be converted to numeric types.false
Connection

Insert Many

Insert new documents into a collection

InputCommentsDefault
DocumentsFor each item, provide a document ( Javascript Object ) to be inserted into the collection.
Connection

Insert One

Insert a new document into a collection

InputCommentsDefault
Document FieldsProvide key and value pairs that make up the properties of your document.
Connection

Raw Request

Execute database commands directly. Does not use collection from connection.

InputCommentsDefault
Connection
Execute CommandProvide the command to execute. See https://www.mongodb.com/docs/v6.0/reference/command/ for more information.
Run Admin CommandIf true, the command will be executed against the admin database.false

Update Many

Update multiple documents in a collection

InputCommentsDefault
Connection
Query FieldsFilters are used to narrow down the results of a query, or to determine which documents to update or delete. For example, you can search for documents whose key "firstName" is "John". To search by ID, provide a key of "_id". Use the "Comparison Operator" input to specify the type of comparison to perform if needed.
Comparison OperatorThe comparison operator to use when filtering documents. Use this field in conjunction with the "Query Fields" input.
Update FieldsProvide key and value pairs to be inserted/updated in your document.
Convert Values to NumbersIf true, number values detected in the "Query Fields" input will be converted to numeric types.false
UpsertIf true, creates a new document when no document matches the query criteria.false

Update One

Update a single document in a collection

InputCommentsDefault
Query FieldsFilters are used to narrow down the results of a query, or to determine which documents to update or delete. For example, you can search for documents whose key "firstName" is "John". To search by ID, provide a key of "_id". Use the "Comparison Operator" input to specify the type of comparison to perform if needed.
Update FieldsProvide key and value pairs to be inserted/updated in your document.
Connection
UpsertIf true, creates a new document when no document matches the query criteria.false