Skip to content

Instantly share code, notes, and snippets.

@valikos
Created May 6, 2019 18:09
Show Gist options
  • Save valikos/5c751c37bf380e25b6840968eacb3cdb to your computer and use it in GitHub Desktop.
Save valikos/5c751c37bf380e25b6840968eacb3cdb to your computer and use it in GitHub Desktop.
gql-5
module Types
class CharacterType < BaseObject
field :first_name, String, null: false
field :last_name, String, null: true do
argument :reverse, Boolean, required: false
end
field :friends, [Types::CharacterType], null: true do
argument :last, Integer, required: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment