LightDataFetcher
implementation not getting executed as intended
#3650
Labels
keep-open
Tells Stale Bot to keep PRs and issues open
Describe the bug
This condition in
ExecutionStrategy:invokeDataFetcher()
:is evaluating to
False
even if thedataFetcher
is actually created by implementingLightDataFetcher
interface.I have tried to debug why it is so, and I found this object being passed as datafetcher to the
invokeDataFetcher
function which is being evaluated as not aLightDataFetcher
:Context
I am creating a
LightOperationExecutor
as a lightweight alternative toOperationExecutor
in GraphQL-SPQR by implementingLightDataFetcher
. Open PR #502To Reproduce
To reproduce, checkout commit 05642488bc and run
test
in Maven. You should see the testsSchemaTest.testSchema
andRelayTest.testRelayMutations
produce errors.Note that even though the commit uses GraphQL-Java
21.3
, this is also reproducible on22.1
(latest), however in this situation we have this datafetcher object,The text was updated successfully, but these errors were encountered: