List workflows

workflows(projectReference: String!, input: SourceSelectorInput): WorkflowList!

Requires project.runs.read.

Arguments

ArgumentTypeRequired
projectReferenceString!Yes
inputSourceSelectorInputNo

Input fields

input

SourceSelectorInput

FieldTypeRequiredDescription
sourceTargetKindSourceTargetKindNoThe source to read; default runtimeTargetKind, else project.
runtimeTargetKindRuntimeTargetKindNoUsed as the source to read when sourceTargetKind is omitted.
targetEnvironmentIdIDNoRequired with the kind environment.
targetBranchIdIDNoRequired with the kind preview_branch.

Response

Returns WorkflowList!. Open the type for its fields and nested types.

FieldTypeDescription
data[Workflow!]!
pageInfoPageInfo!
diagnostics[ProjectSourceFileDiagnostic!]!Workflow source files that could not be read as a workflow.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Workflows($projectReference: String!, $input: SourceSelectorInput) {
  workflows(projectReference: $projectReference, input: $input) {
    data {
      id
      name
      description
      editMode
      inputSchema
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
    diagnostics {
      code
      details
      kind
      message
      sourceId
    }
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}