I'm new to GraphQL and I'm using Relay as my client and PostGraphile as my schema generator. My database is based on this PostgreSQL Schema Design.
My tables are person, post and image and the primary key is a column called id
with type uuid.
When PostGraphile generates my schema, it renames the id column to rowId
and keeps the id
column but with a different type of random key, presumably a record id unique across all tables.
Should I rename all my primary uuid columns person_id, post_id, image_id and so forth? Or is there a way to change how exportGqlSchemaPath handles id's?