Skip to content

Instantly share code, notes, and snippets.

@thoth-ky
Last active February 26, 2019 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoth-ky/d065496b3779a2a3b3e334c2969edf54 to your computer and use it in GitHub Desktop.
Save thoth-ky/d065496b3779a2a3b3e334c2969edf54 to your computer and use it in GitHub Desktop.
# app/graphql/types/book_type.rb
module Types
class BookType < Types::BaseObject
graphql_name 'BookType'
field :id, ID, null: false
field :title, String, null: false
field :author, String, null: true
field :review, String, null: true
field :reviewer, String, null: true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment