Skip to content

docs(data-api): fix javascript-sdk .range() and .is() filter examples - #5551

Draft
bgrenon wants to merge 1 commit into
mainfrom
polly/data-api-sdk-fixes
Draft

docs(data-api): fix javascript-sdk .range() and .is() filter examples#5551
bgrenon wants to merge 1 commit into
mainfrom
polly/data-api-sdk-fixes

Conversation

@bgrenon

@bgrenon bgrenon commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix the value-between-values reference to use .gte('priority', 5).lte('priority', 10) instead of .range('priority', 5, 10).
  • Fix the not-null example to use .not('completed_at', 'is', null) instead of the invalid .is('completed_at', 'not.null').

Signature evidence

@supabase/postgrest-js defines range(from: number, to: number) as numeric, zero-based, inclusive offset pagination, so a column name is not a valid first argument for a value-range filter. Its .is(column, value) overload accepts boolean | null; the valid not-null expression is .not(column, 'is', null).

Correct the value-between-values reference to use inclusive `gte` and `lte` filters instead of pagination `range`, and document the valid not-null pattern for `postgrest-js`.

Co-authored-by: omnigent <noreply@omnigent.ai>
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
neon-next Ready Ready Preview Aug 16, 2026 3:12pm

Request Review

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