I'm using the same type with and without ID. How to handle this case? #1322
-
|
I ran into a new problem. I have: type Player {
name: String!
}
type Query {
players(search: String!): [Player!]
friends(search: String!): [Player!]
}In the Urql is (correctly) warning me about https://formidable.com/open-source/urql/docs/graphcache/errors/#15-invalid-key error. I cannot use: const keys = {
Player: () => null,
};because I'm using How to handle this case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Still ask for the keyable field, in this case |
Beta Was this translation helpful? Give feedback.
Still ask for the keyable field, in this case
idthen, I assume. Any query updates the cache, no matter what they mean for your app, so you'll have to consistently make sure that the same type will be keyable in the same manner.