hasura / hasura/graphql-engine

Support same operators for JSON as JSONB

Open
#8,066 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?
Kind of

### Describe the solution you'd like
Right now hasura supports [these operators for `JSONB`](https://hasura.io/docs/latest/graphql/core/api-reference/graphql-api/query.html#jsonb-operators). It would be nice to support the same operators for `JSON` type as well

### Describe alternatives you've considered
We could change to column to `JSONB` but would like to have it as `JSON`

### If the feature is approved, would you be willing to submit a PR?
I wish I could but Haskell has a steep learning curve, one day...

Contributor guide

Open the contributing guide

Research direction

Start with the JSONB operators listed in the linked Hasura GraphQL API documentation and trace where those operators are exposed for PostgreSQL types. Compare the existing JSONB behavior with JSON support, and consider the work done when the same operators work for JSON columns without requiring a conversion to JSONB.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.