Hello. In Prefect 1 GraphQL, I want to query flow ...
# prefect-community
m
Hello. In Prefect 1 GraphQL, I want to query flow runs with a certain flow run parameter, but when I try to do
parameters{...}
I get this error
Field parameters must not have a selection since type "jsonb" has no subfields.
Any ideas on how I can access the subfields in parameters and use them in a where condition? Thank you
1
I want to do this (seudo code):
Copy code
query{
  flow_run(where parameters{dbt_variable{account{name}} = 'account_1'}){
    name
    state
}
Actually, this thread helped me do this:https://github.com/PrefectHQ/prefect/issues/4609 by changing it to this:
Copy code
{parameters: {_contains: {dbt_variable: {account: "account_1"} } } }
🙌 1