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

    Interface WriteFragmentOptions<TData, TVariables>

    interface WriteFragmentOptions<TData, TVariables extends OperationVariables> {
        broadcast?: boolean;
        data: TData;
        fragment: DocumentNode | TypedDocumentNode<TData, TVariables>;
        fragmentName?: string;
        overwrite?: boolean;
    }

    Type Parameters

    • TData
    • TVariables extends OperationVariables

    Hierarchy (View Summary)

    Index

    Properties

    broadcast?: boolean

    Whether to notify query watchers.

    true
    
    data: TData

    The data to write to the store.

    A GraphQL document created using the gql template string tag from graphql-tag with one or more fragments which will be used to determine the shape of data to read. If you provide more than one fragment in this document then you must also specify fragmentName to specify which fragment is the root fragment.

    fragmentName?: string

    The name of the fragment in your GraphQL document to be used. If you do not provide a fragmentName and there is only one fragment in your fragment document then that fragment will be used.

    overwrite?: boolean

    When true, ignore existing field data rather than merging it with incoming data.

    false