Skip to content

nodeFile

Fetches an object given its ID.

Served by: file

Name Type Description
id ID! ID of the object.

NodeFile

Fetches one file by its global ID. The inline fragment selects the File fields; the lookup returns null when no object has that ID.

query GetNodeFile($id: ID!) {
nodeFile(id: $id) {
id
... on File {
tenantID
name
contentType
refid
createdAt
}
}
}

Variables

{
"id": "<file ID>"
}