New Apollo 3.6.2 project. When I introduce a declarative cache id for my SnowZone type one of the queries using this type produces an error at compile time:
query snowZonesByRouteId($filter: SnowRouteFilter) {
snowRoutes(filter: $filter) {
snowAreas {
... on SnowRegion {
zones {
id
}
}
}
}
}
Adding to extra.graphqls:
extend type SnowZone @typePolicy(keyFields: "id")
Produces:
Key Field(s) '[id]' are not queried on SnowZone at Operation(snowZonesByRouteId).snowRoutes.snowAreas
The abreviated type:
type SnowZone implements SnowArea & Place & Thing & Node {
"""The region that the zone is a part of."""
region: SnowRegion
"""Uniquely identifies the node in the graph."""
id: ID!
How do I fix this error?