Hello-World
Hello-World copied to clipboard
Testing reactions
Let's add some, shall we?
~~Is it just me, or is removeReaction mutation not working?~~
Edit: This issue has been fixed. removeReaction mutation works successfully for me now.
It seems to be documented completely in parallel to addReaction:
- https://developer.github.com/v4/reference/mutation/addreaction/
- https://developer.github.com/v4/reference/mutation/removereaction/
Both have the exact same input and return fields. The only difference is in the name and description.
When I do the addReaction mutation, it works as expected:
mutation AddReactionToIssue {
addReaction(input:{subjectId:"MDU6SXNzdWUyMzEzOTE1NTE=",content:HOORAY}) {
reaction {
content
}
subject {
id
}
}
}
{
"data": {
"addReaction": {
"reaction": {
"content": "HOORAY"
},
"subject": {
"id": "MDU6SXNzdWUyMzEzOTE1NTE="
}
}
}
}
But doing an analogous remove mutation fails with:
mutation RemoveReactionToIssue {
removeReaction(input:{subjectId:"MDU6SXNzdWUyMzEzOTE1NTE=",content:HOORAY}) {
reaction {
content
}
subject {
id
}
}
}
{
"data": {
"removeReaction": null
},
"errors": [
{
"message": "Could not resolve to a node with the global id of 'MDU6SXNzdWUyMzEzOTE1NTE='",
"type": "NOT_FOUND",
"path": [
"removeReaction"
],
"locations": [
{
"line": 32,
"column": 3
}
]
}
]
}
Am I supposed to provide a different subjectId for remove mutation? I've tried the id and the databaseId of the reaction node itself, still same error.
testing comment
testing comment
testing comment
testing comment
testing comment
testing comment
testing comment
testing comment
A shiny new comment! :tada:
HEART
hello
No comment.
test comment from graphiql
Test.
test comment!
Fantastic!
add a comment
add a comment
add another comment
test comment
@octocat Why should we react to the same words in different ways?
test
it works
@octocat
it works
owo what's this? :o
Testing comment
HOORAY
HOORAY