https://prefect.io logo
Title
s

Sen

03/22/2022, 8:50 AM
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.
query{
  flow(where: {
    name: {_eq: "Cloud Transcriplate"}, 
    project: {
      name: {_eq: "Subtitling"}
    }
  	}
	)
}
the above query is not right..
👏 1
s

Sylvain Hazard

03/22/2022, 8:59 AM
Hello 👋 I believe this works. Be careful though, I think it gives you all versions of flows that match the conditions.
query {
  flow(
    where: {
      _and: {
        name: { _eq: "Flow name" }
        project: { name: { _eq: "project_name" } }
      }
    }
  ) {
    name
    project {
      name
    }
  }
}
1
👏 1
:thank-you: 1
s

Sen

03/22/2022, 9:01 AM
Thanks Sylvain
s

Sylvain Hazard

03/22/2022, 9:03 AM
My pleasure 🙂