apollographql/graphql-operations
Write GraphQL queries, mutations, and subscriptions following best practices
by apollographqlFree
Description
graphql-operations is an agent skill from Apollo GraphQL that guides the writing of GraphQL queries, mutations, fragments and subscriptions. It follows established conventions for operation naming, fragment organisation, variable use, conditional directives and colocating fragments with the UI components that use them. The skill is meant to keep a GraphQL codebase consistent and to avoid common mistakes such as over-fetching, anonymous queries and duplicated field selections. It applies when writing a new query that fetches only the fields a component needs, refactoring repeated selections into shared fragments, setting naming conventions across a team, reviewing a mutation for proper variables and input types, or organising fragments next to the components that use them. The guidance works with any GraphQL client. The skill is listed on officialskills.sh and skills.sh, and it is installed from the apollographql/skills repository on GitHub, where its source is public.…
Highlights
- Conventions for queries, mutations and subscriptions
- Fragment organisation and colocation with components
- Avoids over-fetching and anonymous operations
- Works with any GraphQL client
Ratings & Reviews
No ratings yet
Be the first to rate apollographql/graphql-operations.
People also visit
apollographql/apollo-federation
Write Apollo Federation 2 subgraph schemas and compose them into a supergraph

vtex-io-graphql-api
Apply when working with GraphQL schema files in graphql/ or implementing
GraphQL editor
Harness the Power of a Well-Planned GraphQL Schema: Transform Your Project!
apollographql/graphql-operations FAQ
What does the graphql-operations skill do?
It guides an agent to write GraphQL operations that follow best practices for naming, fragments, variables and directives.
Which GraphQL client does it need?
None in particular. The description says it works with any GraphQL client.
How do I install it?
Run npx skills add https://github.com/apollographql/skills --skill graphql-operations in your project.
Does it cover subscriptions?
Yes. The skill covers queries, mutations and subscriptions.
What are the best apollographql/graphql-operations alternatives?
Popular alternatives to apollographql/graphql-operations include graphql-architect, apollographql/skill-creator and apollographql/apollo-server. See all apollographql/graphql-operations alternatives









