Finding link between two items when customAttributes are empty

Below is a simplified version of the GraphQL I am using to get back details of a test order with the returned data.

The problem is that, unlike other orders, the “customAttributes” array is blank (normally it is filled with _boldVariantIds etc.) which means that there is no link between the ‘Georgian Skirting Board’ and the ‘MDF Finish’ option for it . Is there any expansion of the GraphQL that will show that the item and the option is linked?

GRAPHQL

{
  orders(first: 1, sortKey: CREATED_AT, query: "created_at:>'2026-10-14T08:44:00Z'") {
    nodes {
      id
      name
      lineItems(first: 20) {
        nodes {
          id
          title
          variantTitle
          currentQuantity
          customAttributes {
            key
            value
          }
          variantTitle
          sku
          variant {
            id
            displayName
          }
          lineItemGroup {
            id
          }
          product {
            id
          }        
        }
        edges {
          node {
            id
          }
        }
      }
    }
  }
}

RESULT

{
  "data": {
    "orders": {
      "nodes": [
        {
          "id": "gid://shopify/Order/******03138426",
          "name": "MD******",
          "lineItems": {
            "nodes": [
              {
                "id": "gid://shopify/LineItem/******19361658",
                "title": "MDF Finish",
                "variantTitle": "White Primed",
                "currentQuantity": 0,
                "customAttributes": [],
                "sku": "",
                "variant": {
                  "id": "gid://shopify/ProductVariant/******1537300",
                  "displayName": "MDF Finish - White Primed"
                },
                "lineItemGroup": null,
                "product": {
                  "id": "gid://shopify/Product/******598740"
                }
              },
              {
                "id": "gid://shopify/LineItem/******19394426",
                "title": "Georgian Skirting Board",
                "variantTitle": "18mm / 195mm / 4200mm",
                "currentQuantity": 5,
                "customAttributes": [],
                "sku": "",
                "variant": {
                  "id": "gid://shopify/ProductVariant/******63028",
                  "displayName": "Georgian Skirting Board - 18mm / 195mm / 4200mm"
                },
                "lineItemGroup": null,
                "product": {
                  "id": "gid://shopify/Product/******41396"
                }
              }
            ],
            "edges": [
              {
                "node": {
                  "id": "gid://shopify/LineItem/******19361658"
                }
              },
              {
                "node": {
                  "id": "gid://shopify/LineItem/******19394426"
                }
              }
            ]
          }
        }
      ]
    }
  }
}

Hey @Crystal_Presentation , thanks for sharing the query and response.

The field for a Shopify-native bundle or nested-line relationship is lineItemGroup, which you’re already requesting. Since it returns null for both lines, expanding it further won’t reveal a link for this order.

Likewise, customAttributes: [] means no line-item properties are stored on these lines. Keys such as _boldVariantIds are app-specific metadata, not identifiers Shopify generates. Without that metadata, the Admin API can’t safely reconstruct the association from product IDs, line order, or quantities.

The currentQuantity: 0 value on the MDF Finish line is separate: it means the units were refunded or removed, but it doesn’t explain why the relationship metadata is missing.
Since other orders behave differently, please contact Shopify Support so we can investigate the affected order more closely. Please provide these details privately:

  • Shop domain
  • Full order ID or name
  • Affected line-item IDs
  • Order creation time and timezone
  • Admin API version
  • Full GraphQL query and response
  • An example order where the link appears correctly, if available

With those details, our Support team can review the order’s source and history and determine whether Shopify received the relationship metadata when the order was created.