Projects

Projects are used to organize flows that have been deployed to Prefect Cloud. Each flow is contained within a single project.

Querying for projects GQL

Viewing all projects by name, sorted by name:

query {
  project(order_by: { name: asc }) {
    name
  }
}

Getting the id of a project with a specific name:

query {
  project(where: { name: { _eq: "a name" } }) {
    id
  }
}

Creating a new project GQL

mutation {
  createProject(input: { name: "My Project" }) {
    project {
        id
        name
    }
  }
}