Skip to content

Export PgRangeValue and handle empty ranges - #3125

Merged
benjie merged 11 commits into
nextfrom
range-types
Aug 5, 2026
Merged

Export PgRangeValue and handle empty ranges#3125
benjie merged 11 commits into
nextfrom
range-types

Conversation

@benjie

@benjie benjie commented Aug 5, 2026

Copy link
Copy Markdown
Member

We somehow missed that ranges in Postgres could be empty. Those need their own encoding. In TypeScript I've made it so there's a discriminated union so you need to check range.empty ? actionIfEmpty() : actionIfNotEmpty(range) but for GraphQL this would be breaking so we've just added empty fields to input/output. Representing it at all is better than not representing it.

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

馃 Changeset detected

Latest commit: e56ce5e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@dataplan/pg Minor
postgraphile Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@benjie benjie added this to the 5.2 milestone Aug 5, 2026
@benjie
benjie changed the base branch from main to next August 5, 2026 15:36
@benjie
benjie merged commit 18da19e into next Aug 5, 2026
66 checks passed
@benjie
benjie deleted the range-types branch August 5, 2026 15:37
@benjie
benjie restored the range-types branch August 5, 2026 22:32
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