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 filter the fields that has a dictionary in as a value? #201

Open
prabhanjali11 opened this issue Sep 27, 2023 · 0 comments
Open

How to filter the fields that has a dictionary in as a value? #201

prabhanjali11 opened this issue Sep 27, 2023 · 0 comments

Comments

@prabhanjali11
Copy link

Summary
I am trying to query some data in postgraphile but the column that I have specified has the value as a dictionary. I need to query the field based on the key inside that.

My Query:
query{
table(filter:{ col1: {in : ["basdskd","fdhasj"]} col2: {like: "14%"}}){
nodes{
col1
col2
col3
}
}
}

Present Output:

{
col1: basdskd
col2 : 14.2
col3 : {
"a:key1" : val1
"b:key2" : val2
"c:key3" : val3
}
}

from here if I need to add a condition/filter to select the rows where "c:key3" value is "val3", How would I proceed with that?

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

No branches or pull requests

1 participant