Skip to content

fix(graphile-settings): empty belongsTo #958

Merged
pyramation merged 1 commit intomainfrom
fix/foreign-keys-v5
Apr 3, 2026
Merged

fix(graphile-settings): empty belongsTo #958
pyramation merged 1 commit intomainfrom
fix/foreign-keys-v5

Conversation

@yyyyaaa
Copy link
Copy Markdown
Contributor

@yyyyaaa yyyyaaa commented Apr 3, 2026

Use truthy check for isReferencee in _meta plugin

PostGraphile sets isReferencee only when true (reverse FK); forward relations have isReferencee undefined, not false. The !== false check was skipping all belongsTo relations.

…ugin

PostGraphile sets isReferencee only when true (reverse FK);
forward relations have isReferencee undefined, not false.
The !== false check was skipping all belongsTo relations.
@yyyyaaa yyyyaaa requested a review from pyramation April 3, 2026 00:43
@pyramation pyramation merged commit c81e8c3 into main Apr 3, 2026
45 checks passed
@pyramation pyramation deleted the fix/foreign-keys-v5 branch April 3, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants