Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Conversation

@xuorig
Copy link
Collaborator

@xuorig xuorig commented Feb 11, 2017

Schema = GraphQL::Schema.define do
query Graph::Types::Query
resolve_type ->(obj, ctx) do
MySchema.types.values.find { |type| type.name == obj.class.name }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very naive, we can add metadata for model later

@xuorig xuorig merged commit e0ce8c4 into master Feb 11, 2017
@xuorig xuorig deleted the add-vehi branch February 11, 2017 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants