Blueprints

Write data in MongoDB

Source

yaml
id: write-mongo
namespace: company.team

tasks:
  - id: write
    type: io.kestra.plugin.mongodb.InsertOne
    connection:
      uri: mongodb://root:example@mongo:27017/
    database: my_database
    collection: my_collection
    document:
      _id:
        $oid: 60930c39a982931c20ef6cd6
      name: John Doe
      city: Paris

About this blueprint

Ingest

This blueprint shows how to insert a document in MongoDB database.

Insert One

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra