Graphql-engine: Table naming convention

Created on 13 Feb 2020  路  3Comments  路  Source: hasura/graphql-engine

In some places I've seen table names pluralised and in others singular names.

What is the naming convention for tables ? Or there is none ?

Thank you.

question

Most helpful comment

Even though nothing is enforced at the Hasura level, nor the Postgres level, I'm a supporter of the idea that singular should be the standard when naming things on the database.

This answer on StackOverflow dives deep on why that matters: https://stackoverflow.com/a/4703155

All 3 comments

As far as I know, there are none! Up to you how you want to do it.

Even though nothing is enforced at the Hasura level, nor the Postgres level, I'm a supporter of the idea that singular should be the standard when naming things on the database.

This answer on StackOverflow dives deep on why that matters: https://stackoverflow.com/a/4703155

@victorferreira great detailed answer from stack overflow, thank you for the info 馃檹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rikinsk-zz picture rikinsk-zz  路  3Comments

stereobooster picture stereobooster  路  3Comments

jjangga0214 picture jjangga0214  路  3Comments

revskill10 picture revskill10  路  3Comments

tirumaraiselvan picture tirumaraiselvan  路  3Comments