projectResourcesPage

List the project resources defined in the source of a project, a branch or an environment to find one to read or edit; returns every project resource with the source files that could not be read. Requires project.resources.read.

Arguments

  • projectReferenceString!required

  • sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • targetEnvironmentIdID

    Required with the kind environment.

  • targetBranchIdID

    Required with the kind preview_branch.

Responses

query ProjectResourcesPage($projectReference: String!) {  projectResourcesPage(projectReference: $projectReference) {    data {      id      pattern      description      title      sourcePath      editMode    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    diagnostics {      kind      sourceKind      sourcePath      sourceId      code      message      details    }  }}
{  "data": {    "projectResourcesPage": {      "data": [        {          "id": "string",          "pattern": "string",          "description": "string",          "title": "string",          "sourcePath": "string",          "editMode": "string"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "diagnostics": [        {          "kind": "string",          "sourceKind": "string",          "sourcePath": "string",          "sourceId": "string",          "code": "string",          "message": "string",          "details": {}        }      ]    }  }}

The ProjectResourceList! in data.projectResourcesPage.