MongoDB Query
Query a MongoDB database.
Properties
| Name | Type | |
|---|---|---|
| engine | String=mongodb:read | |
| connection | String | |
| collection | String | |
| query | Object | |
| schema | Object | |
engine
Must be mongodb:read.
- Required
- Yes
connection
The connection string of the MongoDB server.
- Required
- Yes
- Examples
-
mongodb://admin:password@db.example.com:27317/?authSource=admin
collection
The name of the MongoDB collection.
- Required
- Yes
query
- Required
- No
Properties
| Name | Type | |
|---|---|---|
| filter | Array | |
| limit | Integer | |
query.filter
- Required
- No
query.filter.field_path
The field path to filter.
query.filter.op
The operation.
- Enum
-
=><>=<=
query.filter.value
The value to compare using the operation.
query.limit
The number of records to fetch.
- Required
- No
schema
Define a schema for the data.
- Required
- Yes