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
type User @typePolicy(keyFields: "id") {
id
name
}
type UserError {
code
}
union UserResult = UserError | User
type Query {
getUser(id: ID!): UserResult
}
The UserResult type doesn't have keyfields and therefore this branch is not taken.
Description
Follow up from this slack discussion.
The
UserResult
type doesn't have keyfields and therefore this branch is not taken.More generally, union result types are awkward to work with the cache. See also apollographql/apollo-kotlin#3827
The text was updated successfully, but these errors were encountered: