Edit page
1. Naming rules

GraphQL uses regexp /[_A-Za-z][_0-9A-Za-z]*/ to validate property and type names. In other words, GraphQL lets you use multiple styles, such as camelCase, under_score, UpperCamelCase end CAPITALIZED_WITH_UNDERSCORES. Notice that that kebab-case is not supported.

The support for multiple naming conventions leads to a question of which one to use.

We looked at Eye Tracking's research that tried to analyze camelCase and under_score. However, it didn't find any favorites.

In the absence of conclusive research, we suggest following these rules: