-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for new GraphQL Interpreter #41
Comments
Hey @JanStevens! Thank you for sharing the link. I'll be able to take a look into it once the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@exAspArk, does this work now? I mean, we're just starting to use this gem on a grapqhl-ruby 1.9 project and it seems to work, but thought i'd confirm since I see nothing in the changelogs. |
It seems like |
Long story short:
I.e. please use I'm going to deprecate using field :user, UserType, null: false
def user # resolver
BatchLoader::GraphQL.wrap(lazy_user)
end
def lazy_user
BatchLoader.for...
end |
Thanks @exAspArk - came across the today and updating all our resolvers to use |
I released a new version which still keeps compatibility with |
I was looking at converting my own analysers to the new Interpreter and stumbled on the fact that if I enabled both
use GraphQL::Analysis::AST
anduse GraphQL::Execution::Interpreter
BatchLoader::GraphQL is not working anymore.Reading up on it and a bit in the source code I think I know why since the ability to redefine a proc for a field is removed (in favour of simplicity and speed). More information here: https://graphql-ruby.org/queries/interpreter.html
Any chance this gem can be updated to support the new GraphQL Interpreter?
The text was updated successfully, but these errors were encountered: