Replies: 1 comment 1 reply
-
|
I think something like this should be able to help #901 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a field
artistId: stringwhich acts as the id for one of my graphql types.The cacheExchange
KeyingConfigtype doesn't know what fields I have, so we need to tell typescript. Maybe we can make it aRecord<any, string>or make a genericKeyExtractField<T: SomeTypeScriptType>to allow passing in a known compile-time type?Fails with "string | null" -> number type error:
Works fine
Beta Was this translation helpful? Give feedback.
All reactions