Skip to content

Instantly share code, notes, and snippets.

@shrirambalakrishnan
Created September 26, 2018 22:07
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 shrirambalakrishnan/56dcac103c40052c69cd55fb4bf9c80d to your computer and use it in GitHub Desktop.
Save shrirambalakrishnan/56dcac103c40052c69cd55fb4bf9c80d to your computer and use it in GitHub Desktop.
Types::MovieType = GraphQL::ObjectType.define do
name 'Movie'
description 'Movie Details'
field :id, !types.ID
field :name, !types.String
field :genre, types.String
field :year, types.String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment