Remote / foldkit-remote-drizzle

checkFields

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

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

Every field the body reads has a column here, every operation it needs is one this compiler runs, and every order it may take (each Order.chosen alternative too) compiles here. 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.