QueryContext type
Home > @cbnsndwch/zrocket-contracts > QueryContext
QueryContext type
Query context available to all synced queries.
This is simply an alias for JwtPayload - we use the JWT payload directly as the query context to avoid duplication and unnecessary transformations.
Signature:
type QueryContext = JwtPayload;References: JwtPayload
Remarks
By using JwtPayload directly: - No magic field name translations - Single source of truth for user claims - Authentication helper just passes through the verified JWT - All JWT fields available for query filtering (including iat, exp if needed)
How was this page?