Skip to content

Add not_null directive for views#619

Open
dale-lakes wants to merge 1 commit intosupabase:masterfrom
dale-lakes:not-null-directives
Open

Add not_null directive for views#619
dale-lakes wants to merge 1 commit intosupabase:masterfrom
dale-lakes:not-null-directives

Conversation

@dale-lakes
Copy link
Copy Markdown
Contributor

@dale-lakes dale-lakes commented Jan 20, 2026

What kind of change does this PR introduce?

New directive

What is the current behavior?

The GraphQL schema for views makes all fields nullable, even if the underlying table has NOT NULL constraints.

What is the new behavior?

Users can add a not_null directive on a view column to have the GraphQL schema properly reflect the non-nullable type of that column.

Additional context

@dale-lakes
Copy link
Copy Markdown
Contributor Author

@imor any chance this could get into v1.5.13 ?

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.

1 participant