Skip to content

feat(select): add nullable option to filter for NULL values - #128

Merged
renky merged 1 commit into
masterfrom
feat/nullable-select-filter
Jun 26, 2026
Merged

feat(select): add nullable option to filter for NULL values#128
renky merged 1 commit into
masterfrom
feat/nullable-select-filter

Conversation

@renky

@renky renky commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Adds an opt-in nullable() option to SelectFilter (inherited by BelongsToFilter and EnumFilter) that exposes a dedicated "none" entry filtering for records where the field is NULL. Selecting it applies whereNull / orWhereNull / whereNotNull depending on the mode.

The feature is opt-in and defaults to false, so existing filters keep their exact behaviour and SQL output. Adds docs and tests.

Adds an opt-in `nullable()` option to `SelectFilter` (inherited by
`BelongsToFilter` and `EnumFilter`) that exposes a dedicated "none"
entry filtering for records where the field is NULL. Selecting it
applies whereNull / orWhereNull / whereNotNull depending on the mode.

The feature is opt-in and defaults to false, so existing filters keep
their exact behaviour and SQL output. Adds docs and tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@renky
renky merged commit 6d48491 into master Jun 26, 2026
22 of 23 checks passed
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