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

how to select the jsonb value for particular key using JSQuery? #33

Open
bibekdw opened this issue Oct 17, 2018 · 1 comment
Open

how to select the jsonb value for particular key using JSQuery? #33

bibekdw opened this issue Oct 17, 2018 · 1 comment

Comments

@bibekdw
Copy link

@bibekdw bibekdw commented Oct 17, 2018

is it possible to select the value for the key in json using JSQuery?

Something like this:
SELECT value @@ (.color) FROM js_test WHERE value @@ '.color = *'

Basically I am interested to see the value of color key in all the json documents if available. My key could be present in any level inside the json.

Thanks.

@abonec
Copy link

@abonec abonec commented Nov 16, 2018

I have the same question. Is it possible to use jsquery inside the select part or only in the where?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.