NodeReceiving

nodeReceiving Query

Audience: Programmer

Fetches a receiving-related object given its ID. This query follows the Relay Global Object Identification Specification and can retrieve any object that implements the NodeReceiving interface.

Arguments

Name
Type
Description

id

ID!

The unique identifier of the receiving object to retrieve

Return Type

NodeReceiving - An interface that returns an object implementing the NodeReceiving interface. This includes:

  • ReceivingInbound - An inbound receiving order containing items to be received

  • ReceivingInboundItem - Individual item within a receiving inbound order

Usage Example

GraphQL Query

query GetReceivingObject($id: ID!) {
  nodeReceiving(id: $id) {
    id
    ... on ReceivingInbound {
      name
      status
      type
      data
      receivingSystemData
      createdAt
      updatedAt
      receivinginbounditems {
        edges {
          node {
            id
            quantity
            status
            item {
              sku
            }
          }
        }
      }
    }
    ... on ReceivingInboundItem {
      quantity
      status
      item {
        sku
        data
      }
      receivingInbound {
        name
        status
      }
    }
  }
}

Query Variables

JavaScript Example

Type Detection

Use the __typename field to determine which specific type was returned:

Last updated

Was this helpful?