Skip to content

Instantly share code, notes, and snippets.

@nodkz
Last active April 11, 2016 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodkz/bb0f4e050448225a8346cefa7077eab8 to your computer and use it in GitHub Desktop.
Save nodkz/bb0f4e050448225a8346cefa7077eab8 to your computer and use it in GitHub Desktop.
What reindex.io will return on DELETE? Null, empty or the previous object data.
mutation {
deleteMovie(input: {clientMutationId:"123", id:"TW92aWU6NTZiODc5M2E4NzMwNzYxMjAwMGZhNWM2"}) {
clientMutationId
id
changedMovie {
id
title
}
changedMovieEdge {
cursor
node {
id
title
}
}
}
}
@nodkz
Copy link
Author

nodkz commented Apr 11, 2016

Mikhail, BE AWARE! This is query touch example on the main page reindex.io, if you have enough permissions ;P

I have not such perms:

{
  "data": {
    "deleteMovie": null
  },
  "errors": [
    {
      "message": "User lacks permissions to delete nodes of type `Movie`.\nUser lacks permissions to update nodes of type `Credit` with fields `movie`.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ]
}

But I'm very interested with normal answer (returned data).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment