Skip to content

GraphQL Interface without fields leads to error in mutation #24803

Discussion options

You must be logged in to vote

From what I understand, you should be able to use the same ... on PullRequest syntax that you would use in a query that returns multiple object types. So something like this:

mutation {
  addLabelsToLabelable(input: {clientMutationId: "foo", labelableId: "foo", labelIds: [1]}) {
    labelable {
      ... on PullRequest {
        title
      }
    }
  }
}

Let us know if you have more questions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants