-
-
Save hash32bot/c32c19a31ce53527db8fb35941a03956 to your computer and use it in GitHub Desktop.
Speaker Mutation - 1 - [Post] GraphQL with Sinatra (Ruby) - Part 2- Mutations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'graphql' | |
module Mutations | |
class BaseMutation < GraphQL::Schema::Mutation | |
end | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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