Skip to content

Instantly share code, notes, and snippets.

@adamjleonard
Last active February 5, 2018 15:33
Show Gist options
  • Save adamjleonard/8a1a90449c8ddda18bba016231d054fe to your computer and use it in GitHub Desktop.
Save adamjleonard/8a1a90449c8ddda18bba016231d054fe to your computer and use it in GitHub Desktop.
# In the app/graphql/types/movie_type.rb file
Types::MovieType = GraphQL::ObjectType.define do
name “Movie”
field :id, !types.ID
field :title, !types.String
field :description, types.String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment