You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using a ChainedInstrumentation that chains MaxQueryComplexityInstrumentation, DataLoaderDispatcherInstrumentation and TracingInstrumentation. This worked well in 7.0.
Now, having updated the dependencies to 9.0 for graphql-java, 5.0.1 for graphql-servlet and 4.2.0 for graphql-spring-boot, a query that has to invoke more than one resolver sequentially, does not return.
I've narrowed it down to the following Instrumentation not working: return new ChainedInstrumentation(Arrays.asList(new DataLoaderDispatcherInstrumentation(...)))
And the following does work: return new DataLoaderDispatcherInstrumentation(...)
The queries that fail are hierarchical with resolvers, so for instance: { entity(id=1) { property } },
will work if the property is fetched by a resolver without a batchloader, but will fail if the resolver for property also uses a batchloader (it simply does not get invoked/triggered).
Any pointers or things I can try?
The text was updated successfully, but these errors were encountered:
(I searched the issues before creating this one, but I think I couldn't find anything because there's no Issue reflecting this problem, only a PR (?) )
Any timeframe for a release that contains this fix?
Upgrading from 7.0 to 9.0.
I've been using a
ChainedInstrumentation
that chainsMaxQueryComplexityInstrumentation
,DataLoaderDispatcherInstrumentation
andTracingInstrumentation
. This worked well in 7.0.Now, having updated the dependencies to 9.0 for graphql-java, 5.0.1 for graphql-servlet and 4.2.0 for graphql-spring-boot, a query that has to invoke more than one resolver sequentially, does not return.
I've narrowed it down to the following
Instrumentation
not working:return new ChainedInstrumentation(Arrays.asList(new DataLoaderDispatcherInstrumentation(...)))
And the following does work:
return new DataLoaderDispatcherInstrumentation(...)
The queries that fail are hierarchical with resolvers, so for instance:
{ entity(id=1) { property } }
,will work if the property is fetched by a resolver without a batchloader, but will fail if the resolver for property also uses a batchloader (it simply does not get invoked/triggered).
Any pointers or things I can try?
The text was updated successfully, but these errors were encountered: