What it does
A Cursor rules file for React projects that fetch data with GraphQL through Apollo Client. It covers queries and mutations, reusable fragments, loading and error handling, custom hooks for Apollo operations, caching, error boundaries, TypeScript types and a folder layout for GraphQL files.
Use cases
- 01Write a query with loading and error states
- 02Share fields across queries with fragments
- 03Wrap an Apollo mutation in a custom hook