Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for filtering JSONB column #519

Open
noobmaster19 opened this issue Sep 18, 2024 · 2 comments
Open

Support for filtering JSONB column #519

noobmaster19 opened this issue Sep 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@noobmaster19
Copy link

What would you like to be added:
The ability to filter by a JSONB column without creating a virtual table.

The usage could potentially be:

query getQuotations {
  quotation(
    where: {validity_period: {issue_date: {lte: "2024-09-18T03:03:16+0000"}}}
  ) {
    validity_period
  }
}

Or

query getQuotations {
  quotation(
    where: {validity_period->>issue_date: {lte: "2024-09-18T03:03:16+0000"}}
  ) {
    validity_period
  }
}

Why is this needed:
It is quite common that people store data using JSONB, without an "ID" column to relate the data above (Therefore cannot use virtual columns as there's no identifier linking both together.

@noobmaster19 noobmaster19 added the enhancement New feature or request label Sep 18, 2024
@awgneo
Copy link

awgneo commented Nov 20, 2024

I would love this feature as well :) Having to define configuration for JSONB fields sort of defeats the purpose of auto-discovery just working out of the box.

@dosco
Copy link
Owner

dosco commented Nov 21, 2024

Cool, I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants