Navigation

MongoDB Service ActionsΒΆ

The following actions are available for the MongoDB service.

Important

In order to use MongoDB service actions, you must have rules set up for each namespace included in the operation.

Note

For details on a specific global, including syntax and examples, click on the specific property to go to its reference page.

Action Description
mongoDBService.db() Retrieve a database.
database.collection() Retrieve a collection.
collection.find() Queries a collection in MongoDB.
collection.findOne() Queries a collection in MongoDB and returns at most one result.
collection.insertOne() Inserts a new document in a collection.
collection.insertMany() Inserts multiple new documents in a collection.
collection.updateOne() Modifies a single document in a collection.
collection.updateMany() Modifies multiple documents in a collection.
collection.upsert() Updates an existing document or inserts a new document in a collection.
collection.deleteOne() Deletes a single document in a collection.
collection.deleteMany() Deletes multiple documents in a collection.
collection.aggregate() Provides access to the aggregation pipeline.