Hello-World icon indicating copy to clipboard operation
Hello-World copied to clipboard

Testing reactions

Open octocat opened this issue 8 years ago • 121 comments

Let's add some, shall we?

octocat avatar May 25 '17 16:05 octocat

~~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.

dmitshur-test avatar May 26 '17 03:05 dmitshur-test

testing comment

rebolek avatar Jun 19 '17 13:06 rebolek

testing comment

rebolek avatar Jun 19 '17 13:06 rebolek

testing comment

rebolek avatar Jun 19 '17 13:06 rebolek

testing comment

rebolek avatar Jun 19 '17 13:06 rebolek

testing comment

rebolek avatar Jun 19 '17 14:06 rebolek

testing comment

rebolek avatar Jun 19 '17 14:06 rebolek

testing comment

rebolek avatar Jun 19 '17 14:06 rebolek

testing comment

rebolek avatar Jun 19 '17 14:06 rebolek

A shiny new comment! :tada:

rebolek avatar Jun 19 '17 14:06 rebolek

HEART

brianamarie avatar Jul 03 '17 20:07 brianamarie

hello

AshoneA avatar Sep 12 '17 12:09 AshoneA

No comment.

polyipseity avatar Dec 03 '17 08:12 polyipseity

test comment from graphiql

maple3142 avatar Jan 05 '18 13:01 maple3142

Test.

shujianbu avatar Jan 23 '18 16:01 shujianbu

test comment!

daeheonjeon avatar Mar 14 '18 08:03 daeheonjeon

Fantastic!

daeheonjeon avatar Mar 14 '18 08:03 daeheonjeon

add a comment

magicds avatar Apr 11 '18 08:04 magicds

add a comment

magicds avatar Apr 11 '18 08:04 magicds

add another comment

magicds avatar Apr 11 '18 08:04 magicds

test comment

zuTTers avatar May 04 '18 12:05 zuTTers

@octocat Why should we react to the same words in different ways?

Ausgezeichnet avatar May 04 '18 16:05 Ausgezeichnet

test

Shuumatsu avatar May 07 '18 03:05 Shuumatsu

it works

vkkis93 avatar May 07 '18 12:05 vkkis93

@octocat

Ausgezeichnet avatar May 07 '18 18:05 Ausgezeichnet

it works

vkkis93 avatar May 11 '18 09:05 vkkis93

owo what's this? :o

PixeLInc avatar May 20 '18 20:05 PixeLInc

Testing comment

boyney123 avatar Sep 03 '18 07:09 boyney123

HOORAY

jibs239 avatar Oct 05 '18 00:10 jibs239

HOORAY

jibs239 avatar Oct 05 '18 00:10 jibs239