Find documents from a MongoDB collection.
yaml
type: "io.kestra.plugin.mongodb.Find"
yaml
id: mongodb_find
namespace: company.team
tasks:
- id: find
type: io.kestra.plugin.mongodb.Find
connection:
uri: "mongodb://root:example@localhost:27017/?authSource=admin"
database: "my_database"
collection: "my_collection"
filter:
_id:
$oid: 60930c39a982931c20ef6cd6
Dynamic
YES
MongoDB collection.
Dynamic
NO
MongoDB connection properties.
Dynamic
YES
MongoDB database.
Dynamic
YES
MongoDB BSON filter.
Can be a BSON string, or a map.
Dynamic
YES
Dynamic
YES
MongoDB BSON projection.
Can be a BSON string, or a map.
Dynamic
YES
Dynamic
YES
MongoDB BSON sort.
Can be a BSON string, or a map.
Dynamic
YES
Default
false
List containing the fetched data.
Only populated if store
parameter is set to false.
The number of rows fetched.
Format
uri
URI of the file containing the fetched results.
Only populated if store
parameter is set to true.
Dynamic
YES
Connection string to MongoDB server.
URL format like mongodb://mongodb0.example.com: 27017