Open Navigation

MongoDB

Free and open-source cross-platform document-oriented database program.

Overview

Inserting Documents

Documents can be inserted using the Insert operation. You can then create document objects as shown here. Note that you can use Tray's lists and objects to create documents with more complex structure.

Inserting Documents

Searching

The MongoDB connector has several "find" operations. These require the user to create a Search Query.

Here is an example of the construction of a Search Query object:

Searching

In the above example we create an object called age and add two properties to it with the names of MongoDB query operators. Using Tray objects like this you can create the necessary query object.

You can also search in a simpler way by using values rather than objects as shown here:

Searching by values

Was this article helpful?
Yes
No