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

    The currently executed operation object provided to an ApolloLink.RequestHandler for each link in the link chain.

    interface Operation {
        client: FlexDataClient;
        extensions: Record<string, any>;
        getContext: () => Readonly<OperationContext>;
        operationName: string | undefined;
        operationType: OperationTypeNode;
        query: DocumentNode;
        setContext: {
            (context: Partial<OperationContext>): void;
            (
                updateContext: (
                    previousContext: Readonly<OperationContext>,
                ) => Partial<OperationContext>,
            ): void;
        };
        variables: OperationVariables;
    }
    Index

    Properties

    The Apollo Client instance executing the request.

    extensions: Record<string, any>

    A map that stores extensions data to be sent to the server.

    getContext: () => Readonly<OperationContext>

    A function that gets the current context of the request. This can be used by links to determine which actions to perform. See managing context

    operationName: string | undefined

    The string name of the GraphQL operation. If it is anonymous, operationName will be undefined.

    operationType: OperationTypeNode

    The type of the GraphQL operation, such as query or mutation.

    A DocumentNode that describes the operation taking place.

    setContext: {
        (context: Partial<OperationContext>): void;
        (
            updateContext: (
                previousContext: Readonly<OperationContext>,
            ) => Partial<OperationContext>,
        ): void;
    }

    A function that takes either a new context object, or a function which takes in the previous context and returns a new one. See managing context.

    variables: OperationVariables

    A map of GraphQL variables being sent with the operation.