You can use the MongoDB adapter to interact with a MongoDB and to insert, get and manipulate documents.

Inserting Documents

Using one of the insert operations, you can insert one or more documents into a MongoDB.

The MongoDB adapter comes with two insert operations: one to insert a single document, the other to insert multiple documents at once.

Name

Type

Description

document

<document class>

A single object of an xUML class representing the document structure.

documents

Array of <document class>

An array of objects of an xUML class representing the document structure.

Refer to the reference of the insert operations for a detailed description of all parameters and options.

Deleting Documents

Using the delete operation, you can remove one or more documents from a MongoDB.

You can remove all documents from the collection by providing { } as queryString.

Refer to reference of the delete operations for a detailed description of all other parameters and options.