Remote / foldkit-remote-drizzle
selectColumns
function · packages/remote-drizzle/src/index.ts:131
function selectColumns(
binding: AnyEntityBinding,
fields: readonly string[],
): Record<string, AnyColumn>The column map for the requested scalar and relation fields. The primary key
is always selected: normalization needs it even when the client did not ask
for an id field. A relation field selects its foreign key under the
relation's own name, which reader rewrites to a ref.