Find¶
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
Type: mongodbDescription: MongoDB- filter
Type: jsonDescription: Filter as jsonOptional number of ports: 0–1 (default: 0)- projection
Type: jsonDescription: Projection as jsonOptional number of ports: 0–1 (default: 0)
Output ports¶
- mongodb
Type: mongodbDescription: MongoDBOptional number of ports: 0–1 (default: 1)- documents
Type: jsonDescription: Documents
Configuration¶
- Filter (filter)
Filter as json.
- Limit (limit)
Limit the maximum number of output documents. (0=unlimited)
- Projection (projection)
Projection as json.
Examples¶
Example flows demonstrating this node:
Implementation¶
- class node_mongodb.FindMongoDB[source]