Find

../../../../_images/find_mongodb.svg

Find multiple documents from the database

Documentation

Find multiple documents from the database matching filter.

Selection of fields to return can be specified using projection. Filter and Projection can be specified either as part of the configuration or using opt-in json-ports.

See https://docs.mongodb.com/manual/reference/method/db.collection.find/ for more details.

For info on how to input data to MongoDB, see MongoDB data format.

Definition

Input ports

mongodb mongodb

MongoDB

filter 0 - 1, json

Filter as json

projection 0 - 1, json

Projection as json

Output ports

mongodb 0 - 1, mongodb

MongoDB

documents json

Documents

Configuration

Filter (filter)

Filter as json.

Limit (limit)

Limit the maximum number of output documents. (0=unlimited)

Projection (projection)

Projection as json.

Examples

Implementation

class node_mongodb.FindMongoDB[source]