G
Cursor rule · Cursor Rule

GraphQL (Apollo Client)

Apollo Client conventions for a React and GraphQL project

By awesome-cursorrules community (curated by PatrickJS) · last verified 2026-09-06
View source
What it does
Cursor Project Rules for GraphQL development with Apollo Client integration: query and mutation structure, caching, and hook usage.
Install
Cursor
mkdir -p .cursor/rules
curl -o .cursor/rules/react-graphql-apollo-client-cursorrules-prompt-file.mdc https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/react-graphql-apollo-client-cursorrules-prompt-file.mdc

Per the repo's own instructions: create a .cursor/rules/ directory in your project, then copy the .mdc file into it. Cursor auto-attaches the rule based on the globs in its frontmatter.

Details
StackReact, GraphQL, Apollo Client
Compared with GraphQL (Apollo Client)