AlphaAlphaAdd the current user's reaction to a comment.
Comment document ID
Emoji short name, for example :+1:
Optionaloptions: CollaborationCommentsWriteOptionsOptional request options
The comment, with the reaction applied
AlphaCreate a comment or reply on the configured resource.
A top-level comment requires target; a reply requires parentCommentId (never both).
Replies inherit target, status, and threadId from the parent comment.
Comment to create
Optionaloptions: CollaborationCommentsWriteOptionsOptional request options
The created comment
AlphaDelete a comment and its replies.
Comment document ID
Optionaloptions: CollaborationCommentsWriteOptionsOptional request options
Mutation result, where documentIds covers the comment and every deleted reply
AlphaFetch comments on the configured resource.
Takes the same query and params as client.fetch, and switches from a
GET to a POST for queries too large for the request URL in the same way,
but queries the comments endpoint, which accepts none of the query options
client.fetch does (perspective, useCdn, filterResponse,
resultSourceMap, stega).
The query runs against the organization store, which is not scoped to
comments, so filter on _type == "sanity.comment".
GROQ-query to perform
Optionalparams: QueryParamsOptional query parameters
Optionaloptions: CollaborationCommentsRequestOptionsOptional request options
AlphaBuild the global document reference used by target.document._ref, for use in
queries and listeners.
The reference is built from the configured resource and the published ID of
the given document ID, since comment references always use published IDs.
Document ID, in published, draft or version form
Global document reference, of the form resourceType:resourceId:documentId
AlphaListen for changes to comments on the configured resource.
Mirrors client.listen(query, params), and emits mutation events.
GROQ-filter to listen to changes for
Optionalparams: QueryParamsOptional query parameters
AlphaListen for changes to comments on the configured resource.
Mirrors client.listen(query, params, options).
GROQ-filter to listen to changes for
Optional query parameters
The same listener options client.listen takes, forwarded
to the organization store's listener
AlphaRemove the current user's reaction from a comment.
Comment document ID
Emoji short name, for example :+1:
Optionaloptions: CollaborationCommentsWriteOptionsOptional request options
The comment, with the reaction removed
AlphaUpdate an existing comment.
Updating status cascades to the comment's replies.
Comment document ID
Fields to update
Optionaloptions: CollaborationCommentsWriteOptionsOptional request options
The updated comment
Comments on the configured organization resource.
Requires
collaboration.organizationId, plus eitherresourceorprojectIdanddataset.