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
| Argument | Type | Required | Description |
|---|---|---|---|
id | ID! | Yes | The 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
}
}
}