FROM CACHE - en_header

GraphQL line item's product is null

Solved
Amichay
Shopify Partner
37 0 3

When fetching orders via GraphQL in some cases the line item's product object value is null (order.lineItem.product node).

I also can't find the product when fetching all client products.

The interesting thing is that the lineItem.title node do show the right product title.

 

For example,

shop_id - 'ultimateautographs'

order #28688

line item product title - "Live Break #1- The Fins Up Series 9/14/20 DOUBLE BOX"

 

103375239-ac8f5300-4aa7-11eb-9129-d899a538c6b5 - Copy.png

Please Investigate 

 

Accepted Solution (1)

Accepted Solutions
vix
Shopify Staff
Shopify Staff
537 103 116

This is an accepted solution.

If the product or variant has been deleted, the line item will only keep the title. 

 
 

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)
Amichay
Shopify Partner
37 0 3

also the client do see this product in the UI Analytics "Products Sales" report

vix
Shopify Staff
Shopify Staff
537 103 116

This is an accepted solution.

If the product or variant has been deleted, the line item will only keep the title. 

 
 

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Amichay
Shopify Partner
37 0 3

@vix Thanks for clarification!

also found the vendor in the lineItem level