{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/couchdb-mango-queries.schema.json",
  "title": "couchdb-mango-queries (summary schema)",
  "description": "Deep draft, 20 November 2026. Not published. Queued note; iil_id is null until the note is published.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "couchdb-mango-queries"
    },
    "iil_id": {
      "type": "null",
      "description": "Not live yet; the iil:note ID is assigned when the note is published."
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/couchdb-mango-queries/"
    },
    "claim": {
      "type": "string",
      "description": "POST /{db}/_find finds documents using a declarative JSON querying syntax."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "couchdb-mango-queries",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/couchdb-mango-queries/",
      "claim": "POST /{db}/_find finds documents using a declarative JSON querying syntax.",
      "license": "CC-BY-4.0",
      "source_license": "Apache-2.0 (Apache CouchDB); Apache-2.0 (Apache CouchDB); prose restates cited source lines in own words",
      "as_of": "2026-11-20",
      "status": "deep-draft-20261120",
      "claims": [
        {
          "id": "C1",
          "claim": "_find is a POST that selects documents with a required JSON selector.",
          "source_id": "S1"
        },
        {
          "id": "C2",
          "claim": "The default limit is 25, and skip, sort, and fields are optional.",
          "source_id": "S1"
        },
        {
          "id": "C3",
          "claim": "Mango's find action takes a selector plus optional limit and skip, with the same default limit of 25.",
          "source_id": "S2"
        }
      ],
      "related_slugs": [
        "postgres-json-jsonb",
        "sqlite-json",
        "couchdb-replication"
      ],
      "related_artifacts": [
        "couchdb-mango-queries.table.json"
      ]
    }
  ]
}