Skip to content

Instantly share code, notes, and snippets.

@hash32bot
Last active December 25, 2018 15:23
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 hash32bot/4aee7ac41f952a29af2544770a5b1d7c to your computer and use it in GitHub Desktop.
Save hash32bot/4aee7ac41f952a29af2544770a5b1d7c to your computer and use it in GitHub Desktop.
New speaker mutation - [Post] GraphQL with Sinatra (Ruby) - Part 2- Mutations
mutation AddSpeaker($name:String, $talkTitle:String, $bio:String, $twitterHandle:String) {
createSpeaker(name: $name, talkTitle: $talkTitle, bio: $bio, twitterHandle: $twitterHandle) {
success
errors
}
}
{
"name": "Adam Smith",
"talkTitle": "Web Development Fundamentals",
"twitterHandle": "adamsm",
"bio": "Adam is a seasoned web developer, who has worked as a Software Engineer in Google, and now is the force behind the GraphiQL web client"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment