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

    Type Alias MutateResultMap<TData>

    type MutateResultMap<TData = unknown> = {
        all: { data: TData | undefined; error?: ErrorLike };
        ignore: { data: TData | undefined; error?: never };
        none: { data: TData; error?: never };
        undefined: { data: TData | undefined; error?: ErrorLike };
    }

    Type Parameters

    • TData = unknown
    Index

    Properties

    all: { data: TData | undefined; error?: ErrorLike }

    Type Declaration

    • data: TData | undefined

      The data returned from your mutation. Can be undefined if the errorPolicy is all or ignore and the server returns a GraphQL response with errors but not data or a network error is returned.

    • Optionalerror?: ErrorLike

      If the mutation produces one or more errors, this object contains either an array of graphQLErrors or a single networkError. Otherwise, this value is undefined.

      For more information, see Handling operation errors.

    ignore: { data: TData | undefined; error?: never }

    Type Declaration

    • data: TData | undefined

      The data returned from your mutation. Can be undefined if the errorPolicy is all or ignore and the server returns a GraphQL response with errors but not data or a network error is returned.

    • Optionalerror?: never

      If the mutation produces one or more errors, this object contains either an array of graphQLErrors or a single networkError. Otherwise, this value is undefined.

      For more information, see Handling operation errors.

    none: { data: TData; error?: never }

    Type Declaration

    • data: TData

      The data returned from your mutation. Can be undefined if the errorPolicy is all or ignore and the server returns a GraphQL response with errors but not data or a network error is returned.

    • Optionalerror?: never

      If the mutation produces one or more errors, this object contains either an array of graphQLErrors or a single networkError. Otherwise, this value is undefined.

      For more information, see Handling operation errors.

    undefined: { data: TData | undefined; error?: ErrorLike }

    Type Declaration

    • data: TData | undefined

      The data returned from your mutation. Can be undefined if the errorPolicy is all or ignore and the server returns a GraphQL response with errors but not data or a network error is returned.

    • Optionalerror?: ErrorLike

      If the mutation produces one or more errors, this object contains either an array of graphQLErrors or a single networkError. Otherwise, this value is undefined.

      For more information, see Handling operation errors.