graphile / crystal-pre-merge

Repository moved
https://github.com/graphile/crystal
39 stars 10 forks source link

Add Node interface to mode=single/relational interfaces #454

Closed benjie closed 11 months ago

benjie commented 11 months ago

This PR adds Node interface to @interface mode:single/@interface mode:relational if they have primary key - adds to both the interface and the types. Fixes https://github.com/graphile/postgraphile/issues/1740

If you were using @interface mode:union then you'll need to add @behavior node to the interface if you want it to have the Node interface still (this PR removes that).