Product catalog — MongoDB

Insert a couple of products, then query them back by filter — the document-store round trip, pre-wired for the docker one-liner in this description.

What’s inside

4 nodes — every type links to its full reference page.

StepNodeType
Catalog sync Inject input.inject
Upsert products MongoDB storage.mongo
Query catalog MongoDB storage.mongo
Catalog Console utility.console

Import it

  1. Studio → Import — paste the JSON below (or the URL /docs/templates/product-catalog-mongodb.json).
  2. Or ask the AI Copilot with the JSON pasted after the phrase:
    import this workflow json into a new workflow named "Product catalog — MongoDB"
  3. Any credentials the nodes need are ${credential.…} references — add them once in Admin → Credentials and the template picks them up. Nothing secret ships in a template.
The workflow document (flowdrome.workflow.v1, 3 node types)
{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Product catalog — MongoDB",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Catalog sync",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {}
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "ins",
      "type": "storage.mongo",
      "label": "Upsert products",
      "category": "io",
      "config": {
        "credentialId": "",
        "uri": "mongodb://127.0.0.1:27017",
        "user": "",
        "password": "",
        "authDb": "admin",
        "database": "shop",
        "collection": "products",
        "operation": "insertMany",
        "documents": [
          {
            "sku": "WID-1",
            "stock": 42
          },
          {
            "sku": "WID-2",
            "stock": 7
          }
        ],
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "find",
      "type": "storage.mongo",
      "label": "Query catalog",
      "category": "io",
      "config": {
        "credentialId": "",
        "uri": "mongodb://127.0.0.1:27017",
        "user": "",
        "password": "",
        "authDb": "admin",
        "database": "shop",
        "collection": "products",
        "operation": "find",
        "filter": {},
        "sort": {},
        "limit": 10,
        "timeoutMs": 15000
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Catalog",
      "category": "utility",
      "config": {
        "message": "catalog now holds: {{ $json }}"
      },
      "position": {
        "x": 1590,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "ins",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "ins",
      "sourcePort": "output",
      "targetNodeId": "find",
      "targetPort": "input"
    },
    {
      "id": "e2",
      "sourceNodeId": "find",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Insert a couple of products, then query them back by filter — the document-store round trip, pre-wired for the docker one-liner in this description."
  }
}

Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: product-catalog-mongodb.json.