Dopamine AI Prompt Library
Open search
Menu
Submitted by
jules_rust24 prompts

React Graphql Apollo Client

Cursor rules for GraphQL development with Apollo Client integration.

Added Nov 26, 2026

Prompt

react-graphql-apollo-client.mdMarkdown · 41 lines · about 260 tokens
// React + GraphQL (Apollo Client) .cursorrules
// Prefer functional components with hooks
const preferFunctionalComponents = true;
// GraphQL and Apollo Client best practices
const graphqlBestPractices = [
"Use Apollo Client for state management and data fetching",
"Implement query components for data fetching",
"Utilize mutations for data modifications",
"Use fragments for reusable query parts",
"Implement proper error handling and loading states",
];
// Folder structure
const folderStructure = `
src/
components/
graphql/
queries/
mutations/
fragments/
hooks/
pages/
utils/
`;
// Additional instructions
const additionalInstructions = `
1. Use Apollo Provider at the root of your app
2. Implement custom hooks for Apollo operations
3. Use TypeScript for type safety with GraphQL operations
4. Utilize Apollo Client's caching capabilities
5. Implement proper error boundaries for GraphQL errors
6. Use Apollo Client DevTools for debugging
7. Follow naming conventions for queries, mutations, and fragments
`;

About this prompt

Content type
Code
Industries
Software Development
Models
Cursor
Languages
English
Length
41 lines, about 260 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
jules_rust24 prompts
Profile

More from jules_rust

View all

Semiotic React Dataviz

Cursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.