Sanity Library Reference Docs
    Preparing search index...

    Interface DocumentEvent<IData>Beta

    The event object received by the function handler in the case of a document event, such as a publish, unpublish, delete or mutation event and similar.

    interface DocumentEvent<IData = any> {
        data: IData;
    }

    Type Parameters

    • IData = any
    Index

    Properties

    Properties

    data: IData

    The data delivered to the function. This is the result of applying any configured GROQ-projection to the changed document. If no projection is configured, this is the document itself.