https://prefect.io logo
Title
m

Matt Delacour

08/26/2022, 5:15 PM
How to use the
_or
statement in GraphQL? Cannot make it work on my side. There is nothing about
_or
or
_and
in the doc nor in Github
👀 2
1
query Flows ($project_id: uuid!){
    flow (where: 
        { _and: [
            {project_id: {_eq: $project_id}}, 
            {archived: {_eq: false}} ] 
        })
    {
        id
        flow_group_id,
        name,
        project_id,
        is_schedule_active
    }
}
it’s a little odd, instead of what you’d expect like
a or b
it’s
or: [{a}, {b}]
does that make sense?
m

Matt Delacour

08/26/2022, 8:27 PM
kk I need to use a List here Will try that. Thank you 🙏
👋 1