HoudiniGraphql/houdini

Setting a custom node interface ID field to support Supabase's Graphql ?

Closed this issue · 2 comments

Describe the bug

According to the Supabase docs

By default relay expects the ID field for types to have the name id. pg_graphql uses nodeId by default to avoid conflicting with user defined id columns. You can configure relay to work with pg_graphql's nodeId field with relay's nodeInterfaceIdField option. More info available here.

Does Houdini have a config option like Relay's nodeInterfaceIdField to customize the expected node interface field name?

Reproduction

No response

If I remember correctly, you can set defaultKeys: ["nodeId"] in the config

https://houdinigraphql.com/api/config

If I remember correctly, you can set defaultKeys: ["nodeId"] in the config

https://houdinigraphql.com/api/config