Remote / foldkit-remote-drizzle
query
function · packages/remote-drizzle/src/index.ts:630
function query<P = unknown, Input = unknown>(
descriptor: QueryDescriptor<string, Input, unknown>,
options: {
readonly entity: AnyEntityBinding
readonly orderBy?:
| readonly OrderTerm[]
| ((input: Input, principal: P) => readonly OrderTerm[])
| undefined
readonly where?:
((input: Input, principal: P) => SQL | undefined) | undefined
readonly defaultPageSize?: number | undefined
readonly maxPageSize?: number | undefined
},
): QuerySource<P, DrizzleDatabase>A RemoteServer.query source over a keyset-paginated table. The connection's
cursor is the row identity; a requested cursor's ordering tuple is re-read
before the page query, so the wire cursor stays a string.