gihrig
02/14/2018, 8:50 AMnikolasburk
Applying authentication
chapter 🙂nikolasburk
Am I supposed to know how format this mutation at this point?At this point, you’re correct that the tutorial implicitly assumes that you know how to write a
vote
mutation! However (and thanks so much for pointing that out), there should definitely be an example for it as this is a step-by-step tutorial that shouldn’t the reader confused!nikolasburk
vote
mutation:
mutation {
vote(linkId: "__SOME_LINK_ID__") {
id
}
}
nikolasburk
type Mutation {
vote(linkId: ID!): Vote
}
vote
is the root field to be used in the mutation and it takes one argument which is the linkId
of the Link
you want to submit a vote for 🙂nikolasburk
gihrig
02/14/2018, 9:42 AM