Skip to content

buildQuerySchema

buildQuerySchema(operators, limits?): JsonObject

Defined in: query-schema.ts:15

JSON Schema for the query argument of generated find/get/remove tools.

The shape is the structured QueryParams form (where/limit/skip/sort/select) — friendlier to schema-driven callers than the REST $-prefixed convention; the dispatch layer translates. When the service’s repository reports its supported operators via describe().capabilities.operators, the per-field operator object is closed over exactly that set, so a caller is never offered an operator the adapter would reject.

string[] | undefined

number

number

JsonObject