younifyd
Menu

Insert One

Insert a single document into a MongoDB collection

Use it in a workflow

  1. Add a step and choose the MongoDB connector.
  2. Pick the Insert One action (under mongodb).
  3. Fill in the fields below, then reference the result from later steps as {{insertOne.response.data}}.

Fields

databasestringrequired

The name of the MongoDB database

collectionstringrequired

The name of the MongoDB collection

documentstringrequired

JSON string containing the document to insert (e.g., {"name": "John", "age": 30})

Need more? See the MongoDB guide for connection setup and behaviour shared by every action.

Was this page helpful?
Insert One — MongoDB — Documentation