List draft files. Requires project.files.read.
Arguments
inputListDraftFilesInput!requiredinput.projectReferenceStringProject whose pending drafts are selected. Returns one latest update per canonically visible source file; restricted server-function drafts are omitted.
input.branchIdIDinput.entityTypeDraftEntityTypeFilter pending drafts by their actual source-file type. One of
page,component,function,virtual_file.input.branchReferenceStringBranch name or UUID. Conflicting branchId aliases are rejected; omit/null for main.
Responses
query DraftFiles($input: ListDraftFilesInput!) { draftFiles(input: $input) { entityId entityType bodySnapshot version updatedAt }}{ "data": { "draftFiles": [ { "entityId": "string", "entityType": "page", "bodySnapshot": "string", "version": 0, "updatedAt": "2026-01-01T00:00:00Z" } ] }}The [DraftFile!]! in data.draftFiles.