I'd like to excute a graphQL with this kind of pre...
# ask-community
c
I'd like to excute a graphQL with this kind of predicate:
Copy code
{parameters: {_contains: {"foo": "bar"}},
but the syntax isn't quite right, I get the error
Copy code
Syntax Error: Expected Name, found String "date".
can someone help?
k
Will try this myself
c
I think I figured it out:
Copy code
{parameters: {_contains: {"boo: bar}},
k
Ah ok was gonna say
_has_key
might be better but yeah this thread is good
❤️ 1
l
Did this end up working for you? It looks like it’s still open and I can’t get this to query as expected:
Copy code
query {
  flow (
    where: {parameters: {_has_key: "mykey"}}
  ) {
      name
      created_by {email}
      parameters 
    }
}
k
What is the output without the where clause here? Do you see the parameters you are expecting?
gratitude thank you 1
l
I needed to query
flow_run
not
flow
🤦🏻‍♀️
It works now
FYI for future slack searchers finding their way here, results when querying
flow
looked like
Copy code
{
  "data": {
    "flow": []
  }
}
which was not expected!
k
Ah ok sounds good! Glad you got that figured out!