VexServerClient
Defined in: packages/next/src/cache/types.ts:27
Server-only Convex read client returned by createVexServerClient.
Exposes only query — this client is for prerenderable read paths, and it
never sets cache: "no-store", unlike convex/nextjs’s fetchQuery.
Methods
Section titled “Methods”query()
Section titled “query()”query<
Query>(query, …args):Promise<FunctionReturnType<Query>>
Defined in: packages/next/src/cache/types.ts:36
Runs a Convex query, deduped via React.cache for the lifetime of one
request when called again with the same function reference and args.
Type Parameters
Section titled “Type Parameters”Query extends FunctionReference<"query">
Parameters
Section titled “Parameters”Query
The Convex query function reference to call.
…OptionalRestArgs<Query>
Arguments for query, per Convex’s OptionalRestArgs.
Returns
Section titled “Returns”Promise<FunctionReturnType<Query>>
The query’s resolved return value.