Bulk Bulk

type: "io.kestra.plugin.mongodb.Bulk"

Execute Bulk (opens new window) request in MongoDB

# Examples

id: "bulk"
type: "io.kestra.plugin.mongodb.Bulk"
connection:
  uri: "mongodb://root:example@localhost:27017/?authSource=admin"
database: "my_database"
collection: "my_collection"
from: "{{ inputs.file }}"

# Properties

# chunk

  • Type: integer
  • Dynamic: ✔️
  • Required:
  • Default: 1000

The size of chunk for every bulk request

# collection

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The mongodb collection.

# connection

The connection properties.

# database

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The mongodb database.

# from

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The source file

# Outputs

# deletedCount

  • Type: integer
  • Default: 0

The number of documents deleted by the write operation.

# insertedCount

  • Type: integer
  • Default: 0

The number of documents inserted by the write operation.

# matchedCount

  • Type: integer
  • Default: 0

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

# modifiedCount

  • Type: integer
  • Default: 0

The number of documents modified by the write operation.

# size

  • Type: integer

The size of the rows processed

# Definitions

# MongoDbConnection

# uri

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

Connection string to mongodb server

url format (opens new window) like mongodb://mongodb0.example.com:27017