-
-
Save maxloncar/7caf9d0778a18a62e358f64ee0297c93 to your computer and use it in GitHub Desktop.
BookType class
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 BookType < Types::BaseObject | |
field :id, ID, null: false | |
field :title, String | |
field :pages, Integer | |
field :rating, Float | |
field :year_published, Integer | |
field :description, String | |
field :created_at, GraphQL::Types::ISO8601DateTime, null: false | |
field :updated_at, GraphQL::Types::ISO8601DateTime, null: false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment