{
  "name": "mongodb-query",
  "title": "Run a MongoDB find",
  "description": "Run a find() query against a MongoDB collection with mongosh, using a connection URI (with credentials) read from a Kubernetes Secret.",
  "category": "Databases",
  "tags": [
    "databases",
    "mongo"
  ],
  "latestVersion": "1.0.2",
  "versions": [
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "collection",
    "database",
    "filter-json",
    "uri-secret-key",
    "uri-secret-name"
  ],
  "images": [
    "mongo@sha256:8bb4442761a63a8dda452744082cdac9644b429807eb977b42324a63cef59ca4"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/mongodb-query.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/mongodb-query/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/mongodb-query/",
  "entrypoint": "query",
  "parameterDetails": [
    {
      "name": "collection",
      "title": "Collection",
      "description": "Collection to query.",
      "type": "string",
      "required": true
    },
    {
      "name": "database",
      "title": "Database",
      "description": "Database name to run the query against.",
      "type": "string",
      "required": true
    },
    {
      "name": "filter-json",
      "title": "Filter (JSON)",
      "description": "MongoDB find() filter as a JSON document.",
      "type": "string",
      "required": false,
      "default": "{}",
      "example": "{\"status\": \"active\"}"
    },
    {
      "name": "uri-secret-key",
      "title": "URI secret key",
      "description": "Key within the Secret that holds the connection URI.",
      "type": "string",
      "required": false,
      "default": "uri"
    },
    {
      "name": "uri-secret-name",
      "title": "URI secret name",
      "description": "Name of the Kubernetes Secret holding the full connection URI (including any credentials).",
      "type": "string",
      "required": false,
      "default": "mongodb-uri"
    }
  ],
  "imageDetails": [
    {
      "ref": "mongo@sha256:8bb4442761a63a8dda452744082cdac9644b429807eb977b42324a63cef59ca4",
      "repository": "mongo",
      "digest": "sha256:8bb4442761a63a8dda452744082cdac9644b429807eb977b42324a63cef59ca4"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.2",
      "date": "2026-10-19",
      "notes": "Repin mongo:7 on the tag's current digest. What is still open against it is recorded in hack/image-cve-exceptions.txt. Same tool, same arguments; nothing about what the step runs changes.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/mongodb-query/1.0.2.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/mongodb-query/1.0.2/template.yaml"
    },
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Repin mongo:7 on the current digest. Same tag, newer build, and the fixable CVE count does not move: still 192, because upstream has not shipped the fixes. Worth doing anyway so the pin is not a year behind the tag.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/mongodb-query/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/mongodb-query/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/mongodb-query",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
