Has anyone used async resolvers with with-context
?
For example in https://lacinia.readthedocs.io/en/latest/resolve/context.html , if resolve-products
was an async field resolver, how would send down the search-term
to the highlighted-name
resolver?
Async isn't fully async; you can't resolve nested fields until resolve what they are nested under.
So you would create a resolve-promise and return that.
When you deliver! the promise, you can deliver a value wrapped with a context.
And it all works.
The nested field resolvers will see the customized context.