Hello,
We are migrating from REST to GRAPHQL Api and I can’t found one field.
We want to get the last 40 unfulfilled orders and I also need each order item’s weight.
Here is my query:
{
orders(first: 40, query: “fulfillment_status:unfulfilled”) {
nodes {
id
name
displayFinancialStatus
displayFulfillmentStatus
note
processedAt
tags
paymentGatewayNames
totalOutstandingSet {
presentmentMoney {
amount
currencyCode
}
}
lineItems(first: 10) {
nodes {
sku
name
title
# How can i get the weitght of each item?
image {
url
}
discountedUnitPriceAfterAllDiscountsSet {
presentmentMoney {
amount
currencyCode
}
shopMoney {
amount
currencyCode
}
}
currentQuantity
quantity
}
}
shippingAddress {
zip
city
name
phone
country
address1
address2
province
lastName
firstName
countryCodeV2
provinceCode
}
customAttributes {
key
value
}
currentTotalPriceSet {
presentmentMoney {
amount
currencyCode
}
}
}
}
}
In the rest resource the weight of each lineItem presented as { “grams”: 200}.
How can i get the weight of each line_item with Graphql query?
Thank you in advance!