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
When using WrapFields a larger number of times across multiple handlers, a graphql.visit invocation gets increasingly slower. I observed that the selection set in the visited document increases in powers of two for some reason. I'm not sure exactly why but after debugging it is a result of this bit in TransformCompositeFields.
To Reproduce
My implementation is complex (and the issue seems to be a result of that complexity) but because the fix seems harmless I thought I'd report it before trying to reproduce in a minimal example.
Expected behavior
The visit function is not stuck in a loop.
Environment:
OS:
@graphql-tools/...:
NodeJS: 16
Additional context
The text was updated successfully, but these errors were encountered:
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
When using WrapFields a larger number of times across multiple handlers, a
graphql.visit
invocation gets increasingly slower. I observed that the selection set in the visited document increases in powers of two for some reason. I'm not sure exactly why but after debugging it is a result of this bit inTransformCompositeFields
.To Reproduce
My implementation is complex (and the issue seems to be a result of that complexity) but because the fix seems harmless I thought I'd report it before trying to reproduce in a minimal example.
Expected behavior
The visit function is not stuck in a loop.
Environment:
@graphql-tools/...
:Additional context
The text was updated successfully, but these errors were encountered: