Thread
#prefect-server
    Sen

    Sen

    6 months ago
    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..
    Sylvain Hazard

    Sylvain Hazard

    6 months ago
    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
        }
      }
    }
    Sen

    Sen

    6 months ago
    Thanks Sylvain
    Sylvain Hazard

    Sylvain Hazard

    6 months ago
    My pleasure 🙂