Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maxloncar
Created March 9, 2023 12:54
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 maxloncar/7c8a3cafe93241c6b0894b0b6d4c3d3f to your computer and use it in GitHub Desktop.
Save maxloncar/7c8a3cafe93241c6b0894b0b6d4c3d3f to your computer and use it in GitHub Desktop.
AuthorType class
module Types
class AuthorType < Types::BaseObject
field :id, ID, null: false
field :name, String
field :date_of_birth, GraphQL::Types::ISO8601DateTime
field :place_of_birth, 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