Reserved Keywords/Table names
Some table, column, function and argument names can cause issues with PostGraphile due to conflicts with auto-generated type and field names. In these cases you can generally change the GraphQL type and field names for your PostgreSQL schema to avoid conflicts using smart comments.
Note that in many cases the singular or the plural of the words below may also cause issues, so assume the list below includes singulars and plurals too. The same goes for snake_case vs camelCase since PostGraphile automatically converts between these for you.
subscription- conflict with the root-level
- [Table, Function]
node- conflicts with the GraphQL root
- [Column, Argument]
orderBy- Used by PostGraphile for ordering, may cause issues when declared as a function argument or table column.
primary_key- we automatically add
orderBy: PRIMARY_KEY_ASCto ordering, if you have a column called
primary_keythen this value will be generated twice and cause issues.
There are other potential conflicts too, if you discover more conflicts then please consider using the "Edit this page" link above to suggest some changes!