Skip to main content
Skip to content

Реакции

Справочная документация по типам схем GraphQL в категории реакций.

Mutations

addReaction

Mutation

Adds a reaction to a subject.

Поля ввода для addReaction

Возвращаемые поля для addReaction

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

reaction (Reaction)

The reaction object.

reactionGroups ([ReactionGroup!])

The reaction groups for the subject.

subject (Reactable)

The reactable subject.

removeReaction

Mutation

Removes a reaction from a subject.

Поля ввода для removeReaction

Возвращаемые поля для removeReaction

Имя.Description

clientMutationId (String)

A unique identifier for the client performing the mutation.

reaction (Reaction)

The reaction object.

reactionGroups ([ReactionGroup!])

The reaction groups for the subject.

subject (Reactable)

The reactable subject.

Objects

Reaction

Object

An emoji reaction to a particular piece of content.

Reaction Реализует

Поля для Reaction

Имя.Description

content (ReactionContent!)

Identifies the emoji reaction.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

id (ID!)

The Node ID of the Reaction object.

reactable (Reactable!)

The reactable piece of content.

user (User)

Identifies the user who created this reaction.

ReactionConnection

Object

A list of reactions that have been left on the subject.

Поля для ReactionConnection

Имя.Description

edges ([ReactionEdge])

A list of edges.

nodes ([Reaction])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)