List evals

evals(projectReference: String!, input: SourceSelectorInput): EvalList!

Requires project.evals.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 EvalList!. Open the type for its fields and nested types.

FieldTypeDescription
data[Eval!]!
pageInfoPageInfo!
diagnostics[ProjectSourceFileDiagnostic!]!Eval source files that could not be read as an eval.

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

Example

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