Skip to main content

node

Returns any object that implements the Node interface by its global ID. This is the Global Object Identification pattern — useful when you have an ID but don't know the type, or for generic refetching.

Arguments

ArgumentTypeRequiredDescription
idID!YesThe global node ID

Return Type

Node — use inline fragments to select type-specific fields.

Example

query GetNode($id: ID!) {
node(id: $id) {
id
... on Document {
name
status
}
... on Template {
title
valid
}
... on Group {
name
publicName
}
}
}

Export This Article

Save a copy of this page as PDF or plain text.