Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface EmbeddedCollectionUpdateContext

    interface EmbeddedCollectionUpdateContext {
        collection: DocumentCollection;
        diff: object[];
        failure: DataModelValidationFailure;
        isReplacement: boolean;
        newSource: object[];
        source: object[];
        state: object;
    }
    Index

    Properties

    collection: DocumentCollection

    The embedded collection on the parent Document.

    diff: object[]

    The accumulating diff array of changes.

    failure: DataModelValidationFailure

    The collection-level validation failure under construction.

    isReplacement: boolean

    Whether the requested update is a ForcedReplacement.

    newSource: object[]

    The replacement source array, same as source unless replacement.

    source: object[]

    The current source array of the parent collection.

    state: object

    The DataModel update state shared with the rest of _updateDiff.