Last active
December 25, 2018 14:58
-
-
Save hash32bot/b7c6278cffd24908205e4c23a61d06f5 to your computer and use it in GitHub Desktop.
Mutation Root - [Post] GraphQL with Sinatra (Ruby) - Part 2- Mutations
This file contains hidden or 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 |
This file contains hidden or 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 'query' | |
| require_relative 'mutation' | |
| class ConferenceAppSchema < GraphQL::Schema | |
| query QueryType | |
| mutation MutationType | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment