@twilio/flex-sdk
    Preparing search index...

    Type Alias QueryOptions<TData, TVariables>

    QueryOptions: {
        context?: DefaultContext;
        errorPolicy?: ErrorPolicy;
        fetchPolicy?: FetchPolicy;
        query: DocumentNode | TypedDocumentNode<TData, TVariables>;
    } & VariablesOption<NoInfer<TVariables>>

    Query options.

    Type Parameters

    • TData = unknown
    • TVariables extends OperationVariables = OperationVariables

    Type Declaration

    • Optionalcontext?: DefaultContext

      If you're using Apollo Link, this object is the initial value of the context object that's passed along your link chain.

      1. Networking options
    • OptionalerrorPolicy?: ErrorPolicy

      Specifies how the query handles a response that returns both GraphQL errors and partial results.

      For details, see GraphQL error policies.

      The default value is none, meaning that the query result includes error details but not partial results.

      1. Operation options
    • OptionalfetchPolicy?: FetchPolicy

      Specifies how the query interacts with the Apollo Client cache during execution (for example, whether it checks the cache for results before sending a request to the server).

      For details, see Setting a fetch policy.

      The default value is cache-first.

      1. Caching options
    • query: DocumentNode | TypedDocumentNode<TData, TVariables>

      A GraphQL query string parsed into an AST with the gql template literal.

      1. Operation options