Read eval source

evalSource(projectReference: String!, evalId: String!, input: WriteTargetInput): EvalSource!

Requires project.evals.read.

Arguments

ArgumentTypeRequired
projectReferenceString!Yes
evalIdString!Yes
inputWriteTargetInputNo

Input fields

input

WriteTargetInput

FieldTypeRequiredDescription
sourceTargetKindWriteTargetKindNoThe source to write; default project.
targetBranchIdIDNoRequired with the kind preview_branch.

Response

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

FieldTypeDescription
idID!
nameString!
descriptionString
targetKindEvalTargetKind!
targetString!
sourcePathString!
exportNameString!
sourceString!The source text of the eval file.

All fields of EvalSource.

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

Example

graphql
query EvalSource($projectReference: String!, $evalId: String!, $input: WriteTargetInput) {
  evalSource(projectReference: $projectReference, evalId: $evalId, input: $input) {
    id
    name
    capabilities
    description
    dynamicFields
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "evalId": "00000000-0000-4000-8000-000000000001"
}