{"meta":{"title":"リアクション","intro":"Reactions カテゴリの GraphQL スキーマ型のリファレンス ドキュメント。","product":"GraphQL API","breadcrumbs":[{"href":"/ja/graphql","title":"GraphQL API"},{"href":"/ja/graphql/reference","title":"リファレンス"},{"href":"/ja/graphql/reference/reactions","title":"リアクション"}],"documentType":"article"},"body":"# リアクション\n\nReactions カテゴリの GraphQL スキーマ型のリファレンス ドキュメント。\n\n## addReaction - mutation\n\nAdds a reaction to a subject.\n\n### Input fields for `addReaction`\n\n* `input` (AddReactionInput!): \n\n### Return fields for `addReaction`\n\n* `clientMutationId` (String): A unique identifier for the client performing the mutation.\n* `reaction` (Reaction): The reaction object.\n* `reactionGroups` ([ReactionGroup!]): The reaction groups for the subject.\n* `subject` (Reactable): The reactable subject.\n\n## AddReactionInput - input object\n\nAutogenerated input type of AddReaction.\n\n### Input fields for `AddReactionInput`\n\n* `clientMutationId` (String): A unique identifier for the client performing the mutation.\n* `content` (ReactionContent!): The name of the emoji to react with.\n* `subjectId` (ID!): The Node ID of the subject to modify.\n\n## Reactable - interface\n\nRepresents a subject that can be reacted on.\n\n### Fields for `Reactable`\n\n* `databaseId` (Int): Identifies the primary key from the database.\n* `id` (ID!): The Node ID of the Reactable object.\n* `reactionGroups` ([ReactionGroup!]): A list of reactions grouped by content left on the subject.\n* `reactions` (ReactionConnection!): A list of Reactions left on the Issue.\n  * `after` (String): Returns the elements in the list that come after the specified cursor.\n  * `before` (String): Returns the elements in the list that come before the specified cursor.\n  * `content` (ReactionContent): Allows filtering Reactions by emoji.\n  * `first` (Int): Returns the first n elements from the list.\n  * `last` (Int): Returns the last n elements from the list.\n  * `orderBy` (ReactionOrder): Allows specifying the order in which reactions are returned.\n\n* `viewerCanReact` (Boolean!): Can user react to this subject.\n\n### Implemented by\n\n* CommitComment\n* Discussion\n* DiscussionComment\n* Issue\n* IssueComment\n* PullRequest\n* PullRequestReview\n* PullRequestReviewComment\n* Release\n\n## Reaction - object\n\nAn emoji reaction to a particular piece of content.\n\n**Implements:** Node\n\n### Fields for `Reaction`\n\n* `content` (ReactionContent!): Identifies the emoji reaction.\n* `createdAt` (DateTime!): Identifies the date and time when the object was created.\n* `databaseId` (Int): Identifies the primary key from the database.\n* `id` (ID!): The Node ID of the Reaction object.\n* `reactable` (Reactable!): The reactable piece of content.\n* `user` (User): Identifies the user who created this reaction.\n\n## ReactionConnection - object\n\nA list of reactions that have been left on the subject.\n\n### Fields for `ReactionConnection`\n\n* `edges` ([ReactionEdge]): A list of edges.\n* `nodes` ([Reaction]): A list of nodes.\n* `pageInfo` (PageInfo!): Information to aid in pagination.\n* `totalCount` (Int!): Identifies the total count of items in the connection.\n* `viewerHasReacted` (Boolean!): Whether or not the authenticated user has left a reaction on the subject.\n\n## ReactionContent - enum\n\nEmojis that can be attached to Issues, Pull Requests and Comments.\n\n### Values for `ReactionContent`\n\n* `CONFUSED`: Represents the :confused: emoji.\n* `EYES`: Represents the :eyes: emoji.\n* `HEART`: Represents the :heart: emoji.\n* `HOORAY`: Represents the :hooray: emoji.\n* `LAUGH`: Represents the :laugh: emoji.\n* `ROCKET`: Represents the :rocket: emoji.\n* `THUMBS_DOWN`: Represents the :-1: emoji.\n* `THUMBS_UP`: Represents the :+1: emoji.\n\n## ReactionEdge - object\n\nAn edge in a connection.\n\n### Fields for `ReactionEdge`\n\n* `cursor` (String!): A cursor for use in pagination.\n* `node` (Reaction): The item at the end of the edge.\n\n## ReactionGroup - object\n\nA group of emoji reactions to a particular piece of content.\n\n### Fields for `ReactionGroup`\n\n* `content` (ReactionContent!): Identifies the emoji reaction.\n* `createdAt` (DateTime): Identifies when the reaction was created.\n* `reactors` (ReactorConnection!): Reactors to the reaction subject with the emotion represented by this reaction group. _(Pagination: `after`, `before`, `first`, `last`)_\n* `subject` (Reactable!): The subject that was reacted to.\n* `users` (ReactingUserConnection!): Users who have reacted to the reaction subject with the emotion represented by this reaction group. **Deprecated:** Reactors can now be mannequins, bots, and organizations. Use the reactors field instead. Removal on 2021-10-01 UTC. _(Pagination: `after`, `before`, `first`, `last`)_\n* `viewerHasReacted` (Boolean!): Whether or not the authenticated user has left a reaction on the subject.\n\n## ReactionOrder - input object\n\nWays in which lists of reactions can be ordered upon return.\n\n### Input fields for `ReactionOrder`\n\n* `direction` (OrderDirection!): The direction in which to order reactions by the specified field.\n* `field` (ReactionOrderField!): The field in which to order reactions by.\n\n## ReactionOrderField - enum\n\nA list of fields that reactions can be ordered by.\n\n### Values for `ReactionOrderField`\n\n* `CREATED_AT`: Allows ordering a list of reactions by when they were created.\n\n## Reactor - union\n\nTypes that can be assigned to reactions.\n\n### Possible types for `Reactor`\n\n* Bot\n* Mannequin\n* Organization\n* User\n\n## ReactorConnection - object\n\nThe connection type for Reactor.\n\n### Fields for `ReactorConnection`\n\n* `edges` ([ReactorEdge]): A list of edges.\n* `nodes` ([Reactor]): A list of nodes.\n* `pageInfo` (PageInfo!): Information to aid in pagination.\n* `totalCount` (Int!): Identifies the total count of items in the connection.\n\n## ReactorEdge - object\n\nRepresents an author of a reaction.\n\n### Fields for `ReactorEdge`\n\n* `cursor` (String!): A cursor for use in pagination.\n* `node` (Reactor!): The author of the reaction.\n* `reactedAt` (DateTime!): The moment when the user made the reaction.\n\n## removeReaction - mutation\n\nRemoves a reaction from a subject.\n\n### Input fields for `removeReaction`\n\n* `input` (RemoveReactionInput!): \n\n### Return fields for `removeReaction`\n\n* `clientMutationId` (String): A unique identifier for the client performing the mutation.\n* `reaction` (Reaction): The reaction object.\n* `reactionGroups` ([ReactionGroup!]): The reaction groups for the subject.\n* `subject` (Reactable): The reactable subject.\n\n## RemoveReactionInput - input object\n\nAutogenerated input type of RemoveReaction.\n\n### Input fields for `RemoveReactionInput`\n\n* `clientMutationId` (String): A unique identifier for the client performing the mutation.\n* `content` (ReactionContent!): The name of the emoji reaction to remove.\n* `subjectId` (ID!): The Node ID of the subject to modify."}