Whitelist mapping each accepted sort field name to its Prisma column path.
A request token's field name is matched against field; only matches
become sort keys, and the resolved path is the exact Prisma column
path used in the emitted orderBy.
OptionalfallbackSort applied when the request sort yields no usable key (missing, empty, or every token unknown).
Each entry must be a static sort key. When omitted, the first whitelisted column is used with ascending order.
Path to the request sort array of string tokens, e.g. ["body", "sort"].
Resolved from the provider's props scope, the same root used by { "type": "reference", "source": "props" } query references.
Discriminator for the dynamic request-driven sort form.
Sort order derived deterministically from a request-provided sort array against a fixed column whitelist.
The renderer emits pure code that parses each request sort token (a leading
+/-selectsasc/desc, defaultasc), maps the field name to its whitelisted column path, silently drops fields not on the whitelist, and falls back to fallback (or the first whitelisted column) when the request sort is absent, empty, or fully invalid. Only whitelisted columns are ever sortable, so untrusted request input can never inject an arbitrary column.