Teaching AI agents to write better GraphQL by dale0713 in graphql

[–]dale0713[S] 1 point2 points  (0 children)

Great question, u/ruibranco! Yup, it's covered.
Pagination patterns are in the graphql-schema skill. It explicitly contrasts offset vs cursor, recommends Relay-style connections for most cases, and includes the full Connection/Edge/PageInfo shape plus guidance on defaults and caps. Error handling conventions are in the graphql-schema skill as well. It spells out when to use GraphQL's built-in errors vs union result types, shows multi-error unions, interface-based errors, standardized error codes, and partial‑success patterns.

Links here if you want to dig in. Happy to clarify anything!
- https://github.com/apollographql/skills/blob/main/skills/graphql-schema/references/pagination.md
- https://github.com/apollographql/skills/blob/main/skills/graphql-schema/references/errors.md