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

Filtering by JSONString #28

Closed
mogmog opened this issue Dec 20, 2016 · 2 comments
Closed

Filtering by JSONString #28

mogmog opened this issue Dec 20, 2016 · 2 comments

Comments

@mogmog
Copy link

mogmog commented Dec 20, 2016

Hacking around with the example, I have been able to add a JSONB field to the employee class (Replacing SQLite with Postgres 9.6).

Is it possible (or on the road map) to specify a json filter, eg the equivalant in postgres of 'SELECT * from Employee where employee.data ->>'thing' = 'blah', so maybe a schema resembling

  allEmployees {
    edges {
      node {
        name
        data(thing: blah)
    }
  }
}
}
@erikwrede
Copy link
Member

This issue has been inactive for a long time, so I'm closing it.
Filtering is currently unsupported in graphene-sqlalchemy. For 2.x you can use the graphene-sqlalchemy-filter library. However, I'm not sure if it natively supports JSON though. We are currently working on more advanced filtering for graphene-sqlalchemy 3.0.

See #335 for progress.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants