Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 19 commits into from
Aug 8, 2023

Conversation

benjie
Copy link
Member

@benjie benjie commented Aug 7, 2023

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 graphile/crystal#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).

@benjie benjie added this to the V5 RC milestone Aug 7, 2023
…nterface if the table has a PK.

🚨 `@interface mode=union` no longer gets `Node` interface unless you also add `@behavior node`.
@benjie benjie merged commit 09a9d66 into main Aug 8, 2023
1 check passed
@benjie benjie deleted the interface-node-id branch August 8, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Node id to interface
1 participant