Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork312
Type Helpers#2193
-
I found the need in my angular app to use the apolloCache.updateQuery function. I wrote a small wrapper to the function so that it can be called and use for any of our queries. However, it's currently not type safe. My updateQuery wrapper is currently only going to work for one of our graphql queries, such as this one: My updateQuery wrapper assumes the structure of the OpResult, MyVars and MyQueryDoc. What I'd like to be ale to do is create some typescript type helps that given a specific Two questions:
|
BetaWas this translation helpful?Give feedback.