Interface GraphQLOptionsV6<FALLBACK_TYPES, TYPED_GQL_STRING>

API V6 graphql({options}) type that can leverage branded graphql query objects and fallback types.

interface GraphQLOptionsV6<FALLBACK_TYPES, TYPED_GQL_STRING> {
    authMode?: GraphQLAuthMode;
    authToken?: string;
    query: DocumentNode | TYPED_GQL_STRING;
    userAgentSuffix?: string;
    variables?: GraphQLVariablesV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
}

Type Parameters

  • FALLBACK_TYPES = unknown

  • TYPED_GQL_STRING extends string = string

Properties

authMode?: GraphQLAuthMode
authToken?: string
userAgentSuffix?: string

Deprecated

This property should not be used