githubEdit

object-ungroupNode

Base interface for all objects with a unique ID

An object with an ID that follows the Relay Global Object Identification Specificationarrow-up-right.

Fields

Field
Type
Description

id

ID!

The unique identifier of the object

Implementing Types

The following types implement the Node interface:

  • Customer

  • Supplier

Usage Example

query {
  node(id: "customer-123") {
    id
    # ... other fields based on the type
    # Use fragments to access type-specific fields
    ... on Customer {
      name
    }
  }
}

Last updated

Was this helpful?