fileContents

Return the files at the given paths. Requires project.files.read.

Arguments

  • inputFileContentsInput!required

  • input.projectReferenceString

    Project UUID, slug or configured domain. Omit it to use the project of the request.

  • input.refString

    Content to read: main, branch:<name-or-id>, release:<version> or env:<name>. Omit for main.

  • input.paths[String!]!required

    Exact file paths to read. Results keep this order.

Responses

query FileContents($input: FileContentsInput!) {  fileContents(input: $input) {    data {      path      found    }  }}
{  "data": {    "fileContents": {      "data": [        {          "path": "string",          "found": false        }      ]    }  }}

The FileBatch! in data.fileContents.