Hi, Is there a place where I can get the sample gr...
# prefect-server
s
Hi, Is there a place where I can get the sample graphql queries? I want to query all the runs for a given flow name and project name.
Copy code
query{
  flow(where: {
    name: {_eq: "Cloud Transcriplate"}, 
    project: {
      name: {_eq: "Subtitling"}
    }
  	}
	)
}
the above query is not right..
👏 1
s
Hello 👋 I believe this works. Be careful though, I think it gives you all versions of flows that match the conditions.
Copy code
query {
  flow(
    where: {
      _and: {
        name: { _eq: "Flow name" }
        project: { name: { _eq: "project_name" } }
      }
    }
  ) {
    name
    project {
      name
    }
  }
}
1
👏 1
🙏 1
s
Thanks Sylvain
s
My pleasure 🙂