Skip to content

docs: add naming and design guide#2279

Merged
martinbonnin merged 7 commits into
graphql:sourcefrom
sarahxsanders:naming
Jul 17, 2026
Merged

docs: add naming and design guide#2279
martinbonnin merged 7 commits into
graphql:sourcefrom
sarahxsanders:naming

Conversation

@sarahxsanders

@sarahxsanders sarahxsanders commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Description

adds a new guide for the "schema governance" series on graphql.org/learn Includes new guide: Establish naming conventions and design standards:

  • Field and type naming patterns
  • Boolean field prefixes
  • Mutation naming strategies
  • Input/output type suffixes
  • Nullability patterns and null bubbling behavior
  • Schema documentation best practices
  • Custom scalars for domain-specific types
  • Error handling approaches
  • Pagination with Relay connections
  • Schema linting with GraphQL-ESLint
  • CI/CD validation pipeline examples
  • Common anti-patterns to avoid

PLEASE DO NOT MERGE, THIS IS PART OF A SERIES OF GUIDES ON SCHEMA GOVERNANCE. THERE ARE TWO MORE GUIDES TO FOLLOW

Note: this needs heavy technical review - the content is based on heavy research i did, but since there's no strict naming conventions/guidance defined in the schema we will want to proceed with confidence that everything here is guidance we want to put out there!

@vercel

vercel Bot commented Dec 26, 2025

Copy link
Copy Markdown

@sarahxsanders is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@martinbonnin martinbonnin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of very important things in that page!

I'd suggest breaking it down in different pages so those important topics get each their own entry points:

  • naming, descriptions & linting
  • nullability
  • error handling
  • scalars
  • pagination
  • anti-patterns

Comment thread src/pages/learn/naming-design.mdx Outdated
Comment thread src/pages/learn/naming-design.mdx
Comment thread src/pages/learn/naming-design.mdx Outdated
Comment thread src/pages/learn/naming-design.mdx
Comment thread src/pages/learn/naming-design.mdx Outdated
Comment thread src/pages/learn/naming-design.mdx Outdated
Comment thread src/pages/learn/naming-design.mdx
martinbonnin and others added 4 commits June 16, 2026 11:38
- Remove the nullable-by-default recommendation per review (martinbonnin),
  keeping the neutral nullability mechanics (bubbling, lists, inputs)
- Extract the error-handling section into its own learn/error-handling page
  and link to it from the naming guide (per martinbonnin + Urigo)
- Add a directives row to the naming conventions table
- Recommend type descriptions alongside field descriptions
- Link scalars.graphql.org for community custom scalar specs

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@martinbonnin
martinbonnin enabled auto-merge (squash) July 17, 2026 16:25
@martinbonnin
martinbonnin merged commit 28b49b8 into graphql:source Jul 17, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants