Bulk load documents in MongoDB using Kestra internal storage file.
yaml
type: "io.kestra.plugin.mongodb.Load"
yaml
id: mongodb_load
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: load
type: io.kestra.plugin.mongodb.Load
connection:
uri: "mongodb://root:example@localhost:27017/?authSource=admin"
database: "my_database"
collection: "my_collection"
from: "{{ inputs.file }}"
Dynamic
YES
MongoDB collection.
Dynamic
NO
MongoDB connection properties.
Dynamic
YES
MongoDB database.
Dynamic
YES
The source file.
Dynamic
YES
Default
1000
Chunk size for every bulk request.
Dynamic
YES
Use this key as ID.
Dynamic
YES
Default
true
Whether to remove idKey from the final document.
Default
0
The number of documents deleted by the write operation.
Default
0
The number of documents inserted by the write operation.
Default
0
The number of documents matched by updates or replacements in the write operation.
Default
0
The number of documents modified by the write operation.
The number of rows processed.
Dynamic
YES
Connection string to MongoDB server.
URL format like mongodb://mongodb0.example.com: 27017