Remote / foldkit-remote-drizzle

checkFields

function · packages/remote-drizzle/src/compile.ts:421

function checkFields(body: AnyQuery, target: CompileTarget, query: string): void

Every field the body reads has a column here, and every operation it needs is one this compiler runs. Checked once, when the source is registered, so a server that starts is a server whose queries can be answered — rather than one that fails on whichever request first runs this query. Ordering is checked by compiling it, which happens at registration for the same reason.