NodePicking

nodePicking Query

Audience: Programmer

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

Arguments

Name
Type
Description

id

ID!

The unique identifier of the picking object to retrieve

Return Type

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

  • PickingOrder - A picking order containing items to be picked

  • PickingOrderItem - Individual item within a picking order

Usage Example

GraphQL Query

query GetPickingObject($id: ID!) {
  nodePicking(id: $id) {
    id
    ... on PickingOrder {
      name
      status
      type
      data
      pickingSystemData
      createdAt
      updatedAt
      pickingorderitems {
        edges {
          node {
            id
            quantity
            status
            item {
              sku
            }
          }
        }
      }
    }
    ... on PickingOrderItem {
      quantity
      status
      item {
        sku
        data
      }
      pickingOrder {
        name
        status
      }
    }
  }
}

Query Variables

JavaScript Example

Type Detection

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

Last updated

Was this helpful?