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
It seems that when accessing a field on a type that is being resolved by an EntityResolver, if the field returns a DeferredValue the resolver will simply hang until a timeout.
You can see that by changing the email field resolver to be something other than a Fetcher the application will complete successfully, but if you leave as a fetcher, it will hang forever.
I'm not sure if this is an issue with the base extendSchema operation within sangria, or just how the composition is done in this library, but I raise it here because this seems like this is going to come up the most with federated graphs.
The text was updated successfully, but these errors were encountered:
The issue is also touched upon in here: #285 (comment)
where a potential way forward would be to enforce the resolver of EntityResolver to always return a DeferredValue instead of any LeafAction as of now. That way you wouldn't have run into this problem. But perhaps it is just hiding another issue?
It seems that when accessing a field on a type that is being resolved by an
EntityResolver
, if the field returns aDeferredValue
the resolver will simply hang until a timeout.A minimized example: https://scastie.scala-lang.org/l8h4f0XXR2aeAqV1boQm2A
You can see that by changing the
email
field resolver to be something other than aFetcher
the application will complete successfully, but if you leave as a fetcher, it will hang forever.I'm not sure if this is an issue with the base
extendSchema
operation within sangria, or just how the composition is done in this library, but I raise it here because this seems like this is going to come up the most with federated graphs.The text was updated successfully, but these errors were encountered: