Sanity Library Reference Docs
    Preparing search index...

    Variable replyToCommentConst Beta

    replyToComment: (
        instance: SanityInstance,
        options: ReplyToCommentOptions,
    ) => Promise<Comment> = ...

    Adds a reply to an existing thread.

    The thread and field are taken from the parent comment, so a reply always matches the same list as the comment it answers. Supply them only when the parent is not loaded.

    Type declaration

    Comments have moved to the organization collaboration API. Import from @sanity/sdk/collaboration; this add-on dataset API is removed in the next major.