I’m not sure if this is a bug or if it is not supported.
I have a query a bit like
subscription TripListApollo($filter: TripSubscriptionFilter!) {
Trip(filter: $filter) {
mutation
node {
...MutableTripDetails
}
}
}
fragment MutableTripDetails on Trip @apollo_client_ios_localCacheMutation {
id
name
archived
references(filter: { parentId: { is_empty: true } }) {
items {
...ItineraryReference
}
}
images {
id
downloadUrl
provider
fileId
filename
}
owner {
...UserDetails
}
}
fragment ItineraryReference on Reference @apollo_client_ios_localCacheMutation {
id
parent {
id
}
visible
nodeId
parentId
tripId
viewDetails {
items {
...ItineraryDetails
}
}
}
fragment ItineraryDetails on ViewDetail @apollo_client_ios_localCacheMutation {
id
name
reference {
tripId
}
}
I have a watch query that also fetches the same fragments, and it works nicely, and when name
in the Trip at the root changes, the subscription fires, however when I change the Details at the leaf of the tree, nothing happens.