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
We should make these resolvers use async/await, because then these functions will be instances of AsyncFunction and we can filter resolvers to wrap by checking for that class instead.
The text was updated successfully, but these errors were encountered:
I’m thinking that we can maybe use the TS compiler to automatically rewrite all resolvers that return promises, as long as they come from the data loaders.
No not babel, because the TS support in Babel really only means that it can parse TS code, it doesn’t do anything with the types such as inference, which is probably what we’d need.
We should make these resolvers use async/await, because then these functions will be instances of
AsyncFunction
and we can filter resolvers to wrap by checking for that class instead.The text was updated successfully, but these errors were encountered: