-
Notifications
You must be signed in to change notification settings - Fork 225
Injection of ResolveInfo into auto-guessed & arguments transformer - #728
Injection of ResolveInfo into auto-guessed & arguments transformer #728Vincz wants to merge 2 commits into
ResolveInfo into auto-guessed & arguments transformer #728Conversation
mcg-web
commented
Aug 13, 2020
hi Vinc with the Resolver definition enhancement #708 this PR could be totally obsolete since the way how resolver works has been completely rewritten to be more like a Symfony Controller. Can we wait until before merging this? So we can make annotations takes benefit of this new feature.
Vincz
commented
Aug 13, 2020
hi Vinc with the Resolver definition enhancement #708 this PR could be totally obsolete since the way how resolver works has been completely rewritten to be more like a Symfony Controller. Can we wait until before merging this? So we can make annotations takes benefit of this new feature.
Yes, you are right, I forgot about it. No problem, we will merge it later only if it is still relevant.
I was also about to work on a way to extend the auto-guessing (to manage case like : #694), but it's the same and will probably not be relevant after the resolver refactoring.
This PR adds a way to inject the
ResolveInfothrough theArgument Transformersand will be able to auto-guessed it based on the classGraphQL\Type\Definition\ResolveInfo.Usage example with auto-guessing:
Usage example with
@Arg