graphql-rails-resolver icon indicating copy to clipboard operation
graphql-rails-resolver copied to clipboard

Update to use graphql-ruby resolvers

Open dkniffin opened this issue 5 years ago • 1 comments

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:

  1. It looks like the gem hasn't been updated since 2017. Is it still active, or should I avoid using it?
  2. 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.

dkniffin avatar Jul 17 '19 13:07 dkniffin

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.

coleturner avatar Jul 17 '19 23:07 coleturner