Quick graphql API question. I have multiple projec...
# ask-community
b
Quick graphql API question. I have multiple projects, which may have flows with names in common. I'd like to be able to query for a flow by name, with the project name as a query parameter.
This query works for me. However, I'd like to modify it so that I can also filter where the project name equals a particular string.
Copy code
query($name: String!) {
    flow(where: {name: {_eq: $name}}, order_by: {version: desc}, limit: 1) {
        id
    		project {
          name
        }
    }
}
k
It would be:
Copy code
query {
  flow (where: {name: {_eq: "test"}, project: {name: {_eq: "bristech"}}}){
    name
    project {
      name
    }
  }
}
👀 1
b
Fantastic!! Thank you!