sassoftware / sassoftware/postgrest-client
Wrong type for jsonb filters
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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