Sanity Library Reference Docs
    Preparing search index...

    Interface ReplyToCommentOptionsBeta

    A dataset handle rather than a document one: everything placing the reply — the thread, the field, the document it targets — is read off the parent comment, so naming a document here would only be a second source of truth.

    interface ReplyToCommentOptions {
        commentId?: string;
        context?: Record<string, unknown>;
        dataset?: string;
        message: CommentMessage;
        parentCommentId: string;
        perspective?: ReleasePerspective | ClientPerspective$1;
        projectId?: string;
        resource?: DocumentResource;
    }

    Hierarchy (View Summary)

    Index

    Properties

    commentId?: string
    context?: Record<string, unknown>
    dataset?: string
    parentCommentId: string

    The comment being replied to. Replies to a reply join the same thread.

    perspective?: ReleasePerspective | ClientPerspective$1
    projectId?: string
    resource?: DocumentResource

    Explicit resource to use. On an individual operation this overrides any default; on a SanityConfig it becomes the instance's default resource. Unlike projectId/dataset, this can also be a media library or canvas resource.