read line_items properties using GraphQL

Solved

read line_items properties using GraphQL

Stijn_Sanders
Tourist
4 1 0

If I download the order JSON from here:
https://admin.shopify.com/store/<storeid>/orders.json 

I can see the "properties" for each "line_items",

but how can I access this data over GraphQL? Properties are not listed under LineItem here:

https://shopify.dev/docs/api/admin-graphql/latest/objects/LineItem

Accepted Solution (1)

Stijn_Sanders
Tourist
4 1 0

This is an accepted solution.

Found it myself... They're under customAttributes

 

query{orders(first:10,query:"status:open"){edges{node{id name confirmed lineItems(first:100){edges{node{id name title sku quantity customAttributes{key value} variantTitle}}}}}}}

View solution in original post

Reply 1 (1)

Stijn_Sanders
Tourist
4 1 0

This is an accepted solution.

Found it myself... They're under customAttributes

 

query{orders(first:10,query:"status:open"){edges{node{id name confirmed lineItems(first:100){edges{node{id name title sku quantity customAttributes{key value} variantTitle}}}}}}}