Assassinating GraphQL with React, Apollo Hooks and ❤
summary
A playable Assassin game is built with GraphQL as the data layer and React using Apollo Hooks to fetch and mutate game state: useQuery/useMutation/useSubscription powers the game list query, the surrender mutation (passes gameId, returns player eliminated state) and a notification subscription over WebSockets. Demos show GraphQL Playground queries, live UI updates via subscriptions and a working surrender flow, and testing uses Apollo MockProvider with exported queries and GraphQL Playground for schema exploration.
AI-written summary · about
