We found something strange with respect to shipping lines.
For example, if you fetch the order with id 6176766328994 with REST, you will see two shipping lines:
However if you load the same order with GraphQL and expand all shipping lines, you will see only a single shipping line:
GraphQL is missing the shipping line for 13.49
Why is this happening?
Hey @ClementBR , if REST is returning 2, then it must be in there somewhere. Can you share your full graphql query that you’ve used?
My first thought here is to make sure first: is greater than 1. Another thought for troubleshooting is to add in a cursor and pageInfo to see if there’s any pagination happening here. - https://shopify.dev/docs/api/usage/pagination-graphql#connection-edges
If hasNextPage is true, then you’ll know to include that in your queries.
If that doesn’t solve it, pop in to Partner Support and share the details from this query so we can dig in a bit further!
Hope that helps,
@ShopifyDevSup thanks for your answer.
Alas our query already uses first: 10 so that’s not the issue.
Here is the full query:
{
order(id: “gid://shopify/Order/6176766328994”) {
id
shippingLines(first:10) {
nodes {
originalPriceSet {
shopMoney {
amount
}
}
discountedPriceSet {
shopMoney {
amount
}
}
}
}
}
}
I’ve raised ticket number is 45935002 with partner support