Skip to content

Instantly share code, notes, and snippets.

@hash32bot
Last active December 25, 2018 15:01
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/c32c19a31ce53527db8fb35941a03956 to your computer and use it in GitHub Desktop.
Save hash32bot/c32c19a31ce53527db8fb35941a03956 to your computer and use it in GitHub Desktop.
Speaker Mutation - 1 - [Post] GraphQL with Sinatra (Ruby) - Part 2- Mutations
require 'graphql'
module Mutations
class BaseMutation < GraphQL::Schema::Mutation
end
end
require 'graphql'
require_relative 'base_mutation'
class Mutations::CreateSpeaker < Mutations::BaseMutation
description 'Creates a speaker'
# input arguments for the mutation
# function to execute on mutation
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment