Skip to main content

Description

The MongoDB Nodes let you execute a range of operations on your MongoDB.

Restrictions

  • MongoDB Nodes are compatible with MongoDB 3.6 or later versions.

Nodes

Find

ParameterTypeDescription
MongoDB ConnectionListSelect MongoDB database connection. To create a new connection, click plus.
CollectionCognigyScriptThe name of the MongoDB collection.
QueryJSONThe MongoDB query. MongoDB Documentation: Find
ParameterTypeDescription
Where to store the resultList
  • Input — stores the result in the Input object.
  • Context — stores the result in the Context object.
Input Key to store ResultCognigyScriptEnter the key where the result should be stored.
ParameterTypeDescription
ProjectionJSONRead the MongoDB documentation for more information on Projection. MongoDB Documentation: Projection
OptionsJSONRead the MongoDB documentation for configurable options. MongoDB Documentation
IndexCognigyScriptRefer to the MongoDB documentation on Indexes. MongoDB Documentation: Indexes
Stop on ErrorToggleLets you configure whether to stop flow execution when an error occurs or not.
ParameterTypeDescription
Cache Response from MongoDB OperationToggleWhether to cache the MongoDB responses to optimize performance.
The expiration time of the cache (in s)NumberThe expiration time in seconds of the cache.

Find One

ParameterTypeDescription
MongoDB ConnectionListSelect MongoDB database connection. To create a new connection, click plus.
CollectionCognigyScriptThe name of the MongoDB collection.
QueryJSONThe MongoDB query. MongoDB Documentation: FindOne
ParameterTypeDescription
Where to store the resultList
  • Input — stores the result in the Input object.
  • Context — stores the result in the Context object.
Input Key to store ResultCognigyScriptEnter the key where the result should be stored.
ParameterTypeDescription
ProjectionJSONRead the MongoDB documentation for more information on Projection. MongoDB Documentation: Projection
OptionsJSONRead the MongoDB documentation for configurable options. MongoDB Documentation
Stop on ErrorToggleLets you configure whether to stop flow execution when an error occurs or not.
ParameterTypeDescription
Cache Response from MongoDB OperationToggleWhether to cache the MongoDB responses to optimize performance.
The expiration time of the cache (in s)NumberThe expiration time in seconds of the cache.

Update One

ParameterTypeDescription
MongoDB ConnectionListSelect MongoDB database connection. To create a new connection, click plus.
CollectionCognigyScriptThe name of the MongoDB collection.
UpdateJSONThe MongoDB update payload in JSON format.MongoDB Documentation: UpdateOne
ParameterTypeDescription
Where to store the resultList
  • Input — stores the result in the Input object.
  • Context — stores the result in the Context object.
Input Key to store ResultCognigyScriptEnter the key where the result should be stored.
ParameterTypeDescription
Use OperatorsToggleIf enabled, then you can use operators like $push in the update query. If not, then we will automatically $set everything that you write in the update query into the database.
OptionsJSONRead the MongoDB documentation for configurable options. MongoDB Documentation
Stop on ErrorToggleLets you configure whether to stop flow execution when an error occurs or not.

Update Many

MongoDB Documentation: UpdateMany

Insert

MongoDB Documentation: Insert

Remove

MongoDB Documentation: Remove

MongoDB Aggregate

MongoDB Documentation: Aggregate
I