Sanity Library Reference Docs
    Preparing search index...

    Interface UsePresenceForDocumentOptionsBeta

    interface UsePresenceForDocumentOptions {
        dataset?: string;
        documentId: string;
        documentType: string;
        excludeVersions?: boolean;
        liveEdit?: boolean;
        path?: Path;
        perspective?: ReleasePerspective | ClientPerspective;
        projectId?: string;
        resource?: DocumentResource;
        resourceName?: string;
        source?: DocumentResource;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: string
    documentId: string
    documentType: string
    excludeVersions?: boolean

    By default a draft, its published version, and any release versions count as the same document, which is what document lists want. Set this to compare ids exactly, so that a draft and a release version do not bleed into each other.

    liveEdit?: boolean

    Indicates whether this document uses liveEdit mode. When true, the document does not use the draft/published model and edits are applied directly to the document.

    path?: Path

    Narrows to participants at or below this field path, which is what a field indicator wants. Omit it for everyone in the document.

    projectId?: string
    resource?: DocumentResource

    Explicit resource object to use for this operation.

    resourceName?: string

    Use resource instead.