Why is shipping_lines in REST api an object array but only an object in GraphQL? Is it expected to have only one per order? If so, why an array in REST? Thanks!
Solved! Go to the solution
This is an accepted solution.
In GraphQL, the shippingLine object will return null in cases where there are more than 1. In version 2020-10, graphQL will introduce a shippingLines connection that will return a collection of all shippingLines. You can check that out here.