Node

Base interface for all objects with a unique ID

An object with an ID that follows the Relay Global Object Identification Specification.

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?