-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hi,
One of the major limitations of the derived context values feature is that derived value functions have to be synchronous, or the consumer has to await each value.
In most cases where the feature would have been usable, this has prevented us from using it, because most of our context-dervied values are async.
Examples:
- Database connection (async since we acquire a connection from a pool for each resolver, otherwise we use a singleton)
- User or other request-related records (permissions, organisation/tenant, etc)
- Database transaction (similar to above, more niche)
It would be great if grats can detect and await any functions that generate @gqlContext-tagged value that just happen to be async.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels