Access the underlying contract endpoint.
Contract name without the resource namespace.
Fully qualified contract name.
Resource namespace used for query-key grouping.
Build a contract-level query key without path/query params.
Create infinite query options for TanStack Query.
Use static path/query with page(...) when page params can be merged
into a stable key. Use params(...) with an explicit key when every page
needs fully dynamic args.
Build a stable query key for this contract
Only includes path/query in the key when they have defined values. This ensures consistent serialization between server (dehydrate) and client (hydrate), since undefined object values may serialize differently across React's RSC boundary vs JSON.stringify.
Optionalparams: { body?: unknown; path?: unknown; query?: unknown }Create mutation options for TanStack Query.
The generated mutationFn accepts the same variables shape as the
underlying contract endpoint call.
Build a namespace-level query key for resource-wide cache operations.
Create query options for TanStack Query.
Pass the result to useQuery, prefetchQuery, fetchQuery, or any API
that accepts query options.
TanStack Query helper bound to one Beignet contract.
The helper intentionally exposes TanStack Query options instead of hiding React Query. Query keys are stable and grouped by Beignet namespace so apps can invalidate a resource or a single contract.