graphql-rails-resolver
graphql-rails-resolver copied to clipboard
Update to use graphql-ruby resolvers
This is an awesome looking gem, and I think it solves one of my main issues with how graphql-ruby works. Namely, the QueryType gets very big very fast, and a lot of the logic is really just wrappers around built-in rails logic.
Two questions:
- It looks like the gem hasn't been updated since 2017. Is it still active, or should I avoid using it?
- I'm not sure if graphql-ruby resolvers got added after this gem or what, but it feels like this gem should be updated to use resolvers, since using
resolve
seems to be discouraged at this point.
Hey @dkniffin
I have not written any Ruby or used graphql-ruby since late 2017, so I'm not sure whether it still is compatible (or if graphql-ruby has made significant breaking changes). I reckon what I see from the changes that the new resolvers pattern is a bit different.
I would advise to use the new Resolvers if that is the blessed path :) If the resolve
hook is still supported, then this should still work.