-
-
Save hash32bot/1b9818e4a18a80f34c7aa139a3d14545 to your computer and use it in GitHub Desktop.
Add CreateSpeaker to MutationType - [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' | |
require_relative 'mutations/create_speaker' | |
class MutationType < GraphQL::Schema::Object | |
description "The mutation root of this schema" | |
field :createSpeaker, mutation: Mutations::CreateSpeaker | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment