QuerySource.query
property · packages/remote-server/src/index.ts:865
readonly query: stringRemote / foldkit-remote-server
interface · packages/remote-server/src/index.ts:864
interface QuerySource<P, R = never> {
readonly query: string
readonly entity: string
readonly Input: Schema.Codec<unknown>
readonly run: (context: {
readonly input: unknown
readonly window: QueryWindow
readonly principal: P
readonly viewer?: Option.Option<EntityRef> | undefined
readonly select?: RelationRequirement | undefined
}) => Effect.Effect<QueryPage, RemoteServerError, R>
readonly visible?: unknown
readonly cache?: CachePolicy | undefined
}QuerySource.queryproperty · packages/remote-server/src/index.ts:865
readonly query: stringQuerySource.entityproperty · packages/remote-server/src/index.ts:867
readonly entity: stringThe entity whose rows it lists: a list read live selects rows of no other.
QuerySource.Inputproperty · packages/remote-server/src/index.ts:868
readonly Input: Schema.Codec<unknown>QuerySource.runproperty · packages/remote-server/src/index.ts:869
readonly run: (context: {
readonly input: unknown
readonly window: QueryWindow
readonly principal: P
readonly viewer?: Option.Option<EntityRef> | undefined
readonly select?: RelationRequirement | undefined
}) => Effect.Effect<QueryPage, RemoteServerError, R>QuerySource.visibleproperty · packages/remote-server/src/index.ts:884
readonly visible?: unknownThe rule that decides which rows the query lists. See EntitySource.visible.
QuerySource.cacheproperty · packages/remote-server/src/index.ts:886
readonly cache?: CachePolicy | undefinedHow long an answer stays fresh, from the Query's declaration. See EntitySource.cache.