sassoftware / sassoftware/postgrest-client

Wrong type for jsonb filters

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17
Forks
0
Avg merge
3h 35m
Merged PRs (30d)
1

Description

Filters like .eq('json_col->some_val', true) currently only accept string | number.
Other types like boolean, null, and undefined should be supported.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the TypeScript definition and implementation behind the .eq filter, then check how JSONB filter values are typed. Run the existing filter tests if present; done means .eq accepts boolean, null, and undefined as well as string and number.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.