Sanity Library Reference Docs
    Preparing search index...

    Interface CommentOperationsBeta

    interface CommentOperations {
        create: (comment: CommentCreatePayload) => Promise<void>;
        react: (id: string, reaction: CommentReactionOption) => Promise<void>;
        remove: (id: string) => Promise<void>;
        update: (
            id: string,
            comment: Partial,
            opts?: CommentUpdateOperationOptions,
        ) => Promise<void>;
    }
    Index

    Properties

    create: (comment: CommentCreatePayload) => Promise<void>
    react: (id: string, reaction: CommentReactionOption) => Promise<void>
    remove: (id: string) => Promise<void>
    update: (
        id: string,
        comment: Partial,
        opts?: CommentUpdateOperationOptions,
    ) => Promise<void>