Load Load

yaml
type: "io.kestra.plugin.mongodb.Load"

Bulk load documents in MongoDB using Kestra internal storage file.

Examples

yaml
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 }}"

Properties

collection

  • Type: string
  • Dynamic: βœ”οΈ
  • Required: βœ”οΈ

MongoDB collection.

connection

MongoDB connection properties.

database

  • Type: string
  • Dynamic: βœ”οΈ
  • Required: βœ”οΈ

MongoDB database.

from

  • Type: string
  • Dynamic: βœ”οΈ
  • Required: βœ”οΈ

The source file.

chunk

  • Type: integer
  • Dynamic: βœ”οΈ
  • Required: ❌
  • Default: 1000

Chunk size for every bulk request.

idKey

  • Type: string
  • Dynamic: βœ”οΈ
  • Required: ❌

Use this key as ID.

removeIdKey

  • Type: boolean
  • Dynamic: βœ”οΈ
  • Required: ❌
  • Default: true

Whether to remove idKey from the final document.

Outputs

deletedCount

  • Type: integer
  • Dynamic: ❓
  • Required: ❌
  • Default: 0

The number of documents deleted by the write operation.

insertedCount

  • Type: integer
  • Dynamic: ❓
  • Required: ❌
  • Default: 0

The number of documents inserted by the write operation.

matchedCount

  • Type: integer
  • Dynamic: ❓
  • Required: ❌
  • Default: 0

The number of documents matched by updates or replacements in the write operation.

modifiedCount

  • Type: integer
  • Dynamic: ❓
  • Required: ❌
  • Default: 0

The number of documents modified by the write operation.

size

  • Type: integer
  • Dynamic: ❓
  • Required: ❌

The number of rows processed.

Definitions

io.kestra.plugin.mongodb.MongoDbConnection

Properties

uri
  • Type: string
  • Dynamic: βœ”οΈ
  • Required: βœ”οΈ
  • Min length: 1

Connection string to MongoDB server.

URL format like mongodb://mongodb0.example.com:27017

Was this page helpful?