Skip to main content

Reference documentation for GraphQL schema types in the Reactions category.

Mutations

addReaction

Mutation

Adds a reaction to a subject.

addReaction에 대한 입력 필드

addReaction에 대한 반환 필드

이름설명

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에 대한 반환 필드

이름설명

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에 대한 필드

이름설명

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에 대한 필드

이름설명

edges ([ReactionEdge])

A list of edges.

nodes ([Reaction])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

viewerHasReacted (Boolean!)

Whether or not the authenticated user has left a reaction on the subject.

ReactionEdge

Object

An edge in a connection.

ReactionEdge에 대한 필드

이름설명

cursor (String!)

A cursor for use in pagination.

node (Reaction)

The item at the end of the edge.

ReactionGroup

Object

A group of emoji reactions to a particular piece of content.

ReactionGroup에 대한 필드

이름설명

content (ReactionContent!)

Identifies the emoji reaction.

createdAt (DateTime)

Identifies when the reaction was created.

reactors (ReactorConnection!)

Reactors to the reaction subject with the emotion represented by this reaction group.

reactors 의 인수

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

subject (Reactable!)

The subject that was reacted to.

users (ReactingUserConnection!)

Users who have reacted to the reaction subject with the emotion represented by this reaction group.

경고

users is deprecated.

Reactors can now be mannequins, bots, and organizations. Use the reactors field instead. Removal on 2021-10-01 UTC.

users 의 인수

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

viewerHasReacted (Boolean!)

Whether or not the authenticated user has left a reaction on the subject.

ReactorConnection

Object

The connection type for Reactor.

ReactorConnection에 대한 필드

이름설명

edges ([ReactorEdge])

A list of edges.

nodes ([Reactor])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

ReactorEdge

Object

Represents an author of a reaction.

ReactorEdge에 대한 필드

이름설명

cursor (String!)

A cursor for use in pagination.

node (Reactor!)

The author of the reaction.

reactedAt (DateTime!)

The moment when the user made the reaction.

Interfaces

Reactable

Interface

Represents a subject that can be reacted on.

Reactable은(는) 다음과 같이 구현됩니다.

Reactable에 대한 필드

이름설명

databaseId (Int)

Identifies the primary key from the database.

id (ID!)

The Node ID of the Reactable object.

reactionGroups ([ReactionGroup!])

A list of reactions grouped by content left on the subject.

reactions (ReactionConnection!)

A list of Reactions left on the Issue.

reactions 의 인수

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ReactionOrder)

    Allows specifying the order in which reactions are returned.

viewerCanReact (Boolean!)

Can user react to this subject.

Enums

ReactionContent

Enum

Emojis that can be attached to Issues, Pull Requests and Comments.

ReactionContent의 값

이름설명
CONFUSED

Represents the :confused: emoji.

EYES

Represents the :eyes: emoji.

HEART

Represents the :heart: emoji.

HOORAY

Represents the :hooray: emoji.

LAUGH

Represents the :laugh: emoji.

ROCKET

Represents the :rocket: emoji.

THUMBS_DOWN

Represents the :-1: emoji.

THUMBS_UP

Represents the :+1: emoji.

ReactionOrderField

Enum

A list of fields that reactions can be ordered by.

ReactionOrderField의 값

이름설명
CREATED_AT

Allows ordering a list of reactions by when they were created.

Unions

Reactor

Union

Types that can be assigned to reactions.

Reactor에 가능한 유형

Input objects

AddReactionInput

Input object

Autogenerated input type of AddReaction.

AddReactionInput에 대한 입력 필드

이름설명

clientMutationId (String)

A unique identifier for the client performing the mutation.

content (ReactionContent!)

The name of the emoji to react with.

subjectId (ID!)

The Node ID of the subject to modify.

ReactionOrder

Input object

Ways in which lists of reactions can be ordered upon return.

ReactionOrder에 대한 입력 필드

이름설명

direction (OrderDirection!)

The direction in which to order reactions by the specified field.

field (ReactionOrderField!)

The field in which to order reactions by.

RemoveReactionInput

Input object

Autogenerated input type of RemoveReaction.

RemoveReactionInput에 대한 입력 필드

이름설명

clientMutationId (String)

A unique identifier for the client performing the mutation.

content (ReactionContent!)

The name of the emoji reaction to remove.

subjectId (ID!)

The Node ID of the subject to modify.