Created
May 5, 2019 19:22
-
-
Save valikos/7f90e27f8d06eb823238b038d2194a5f to your computer and use it in GitHub Desktop.
gql-4
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 Types | |
class CharacterType < BaseObject | |
field :first_name, String, null: false | |
field :last_name, String, null: true | |
field :friends, [Types::CharacterType], null: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment