-
-
Save hash32bot/126adb71ed7c25cd5171dc13148ecd8c to your computer and use it in GitHub Desktop.
Speaker Mutations - non-nullable - [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
module SpeakerMutations | |
Create = GraphQL::Relay::Mutation.define do | |
name 'CreateSpeaker' | |
description 'Creates a speaker' | |
input_field :name, !types.String # note the ! | |
input_field :bio, types.String | |
input_field :twitterHandle, types.String | |
input_field :talkTitle, !types.String | |
# ... rest of the mutation body | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment