/plushcap/analysis/hasura/naming-convention-for-graphql-schema-snake-case-vs-camel-case

Naming conventions for GraphQL schema

What's this blog post about?

The "Naming Convention" feature in GraphQL schema allows users to customize the names of fields, types, and arguments. This is particularly useful when dealing with multiple databases within a Hasura application. There are two available naming conventions - hasura-default and graphql-default. By default, all Hasura applications use the hasura-default naming convention, which uses snake casing for names and does not change enum values. The graphql-default naming convention uses PascalCase for type names, camelCase for field names and arguments, and UPPERCASE for enum values. Users can also customize root fields and type names by adding prefixes or suffixes.

Company
Hasura

Date published
Sept. 7, 2022

Author(s)
Catalin Pit

Word count
714

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.