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

    Type Alias SubscribeOptions<TData, TVariables>

    SubscribeOptions: {
        context?: DefaultContext;
        errorPolicy?: ErrorPolicy;
        extensions?: Record<string, any>;
        fetchPolicy?: FetchPolicy;
        query: DocumentNode | TypedDocumentNode<TData, TVariables>;
    } & VariablesOption<NoInfer<TVariables>>

    Type Parameters

    • TData = unknown
    • TVariables extends OperationVariables = OperationVariables

    Type Declaration

    • Optionalcontext?: DefaultContext

      Shared context between your component and your network interface (Apollo Link).

    • OptionalerrorPolicy?: ErrorPolicy

      Specifies the ErrorPolicy to be used for this operation

    • Optionalextensions?: Record<string, any>

      Shared context between your component and your network interface (Apollo Link).

    • OptionalfetchPolicy?: FetchPolicy

      How you want your component to interact with the Apollo cache. For details, see Setting a fetch policy.

    • query: DocumentNode | TypedDocumentNode<TData, TVariables>

      A GraphQL document, often created with gql from the graphql-tag package, that contains a single subscription inside of it.