We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice to have an abillity to filter by the values of the json, and not just check their key presence
Something like
datatypes.JSONContains("json_column").Path("$.labels.my_label").Value("my_value")
Which would be SQL in MySQL
SELECT * FROM my_table WHERE JSON_CONTAINS("json_column", '"my_value', "$.labels.my_label")
Not sure how it would be in Postgres
As we might want to give users ability to filter based on specific json values from a set of attributes
The text was updated successfully, but these errors were encountered:
// Check JSON extract value from keys equal to value datatypes.JSONQuery("attributes").Equals(value, keys...) DB.First(&user, datatypes.JSONQuery("attributes").Equals("jinzhu", "name")) DB.First(&user, datatypes.JSONQuery("attributes").Equals("orgb", "orgs", "orgb"))
Sorry, something went wrong.
No branches or pull requests
Describe the feature
It would be nice to have an abillity to filter by the values of the json, and not just check their key presence
Something like
Which would be SQL in MySQL
Not sure how it would be in Postgres
Motivation
As we might want to give users ability to filter based on specific json values from a set of attributes
The text was updated successfully, but these errors were encountered: