Type alias GraphQLQueryOptions<Result, Variables>

GraphQLQueryOptions<Result, Variables>: {
    extensions?: Record<string, unknown>;
    operationName?: string;
    query: GraphQLDocument<Result, Variables>;
} & (Variables extends {
        [key: string]: never;
    }
    ? {
        variables?: Variables;
    }
    : {
        variables: Variables;
    })

Type Parameters

  • Result = Record<string, unknown>
  • Variables = Record<string, unknown>

Type declaration