Remote / foldkit-remote-drizzle
compileOrderBy
function · packages/remote-drizzle/src/compile.ts:448
function compileOrderBy(
body: AnyQuery,
target: CompileTarget,
input: Readonly<Record<string, unknown>>,
query: string,
): ReadonlyArray<OrderTerm>The body's ordering for one input, as this package's order terms: a chosen order resolved to the field the input names. An input naming no order it offers is the request's mistake, refused as a compile error.