graphql-operations
Installation
SKILL.md
GraphQL Operations Guide
This guide covers best practices for writing GraphQL operations (queries, mutations, subscriptions) as a client developer. Well-written operations are efficient, type-safe, and maintainable.
Start From the Schema
Write every operation against the project's schema, not against the examples in this guide.
- Find the schema before you write anything. Check the
schemaentry incodegen.ts,graphql.config.*, orapollo.config.*, then look for*.graphqlSDL files. - Use only the fields, arguments, and enum values that the schema defines. Field names in this guide, such as
updatedAtororderBy: { field: CREATED_AT, direction: DESC }, are illustrations. - Save the operation as a document next to the client's existing operations. Leave the server schema unchanged unless the user asks for a schema change.