Skip to content

Instantly share code, notes, and snippets.

@hash32bot
Last active December 25, 2018 15:03
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/86bba2aed6fb10c0abd0a40c6a232318 to your computer and use it in GitHub Desktop.
Save hash32bot/86bba2aed6fb10c0abd0a40c6a232318 to your computer and use it in GitHub Desktop.
Speaker Mutations 2 - [Post] GraphQL with Sinatra (Ruby) - Part 2- Mutations
require 'graphql'
require_relative 'base_mutation'
class Mutations::CreateSpeaker < Mutations::BaseMutation
description 'Creates a speaker'
argument :name, String, required: false
argument :bio, String, required: false
argument :twitter_handle, String, required: false
argument :talk_title, String, required: false
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment