Anyone use Graph.cool with Apollo Client and Angul...
# prisma-whats-new
k
Anyone use Graph.cool with Apollo Client and Angular 2 ? Got 2 pages : page A who render groups with all entities (container component : 1 query - allGroupsWithEntities) and page B who display single entity (container component : 1 query - entityWithDashboards). When a mutation is trigger on page A (delete an entity), the state change for the current client and i use "subscription-ws" : others client receive the mutation and i need to choose how i can update they're state (onEntityDeleted). Page A and Page B can receive the subscription. If they're on page A. it's work well (i call updateQuery to update state on allGroupsWithEntities). Same for page B (i call updateQuery to update state on entityWithDashboards). Another solution can be desirable ? It's look like complicated because if i need to make a single action (like delete a group with all entities), i need to make 2 new real-time subscription on 2 different query (who use this part of the state) with 2 new reducers.