orders GraphQL: shippingAddress not returned

Solved

orders GraphQL: shippingAddress not returned

DrZane
Visitor
2 1 0

Hello,

I need to acquire Shopify orders data via GraphQL.

My endpoint is: https://****.myshopify.com/admin/api/2021-04/graphql.json

 

This is my bulk operation:

mutation {
    bulkOperationRunQuery(
        query:"""
            {
    orders(query:"updated_at:>2021-06-23") {
        edges {
            node {
                id
                email
                originalTotalPriceSet {
                    shopMoney {
                        amount
                        currencyCode
                    }
                }
                createdAt
                updatedAt
                closedAt
                cancelledAt
                cancelReason
                billingAddress {
                    firstName
                    lastName
                    company
                    address1
                    address2
                    city
                    zip
                    province
                    provinceCode
                    country
                    countryCodeV2
                    phone
                }
                shippingAddress {
                    firstName
                    lastName
                    company
                    address1
                    address2
                    city
                    zip
                    province
                    provinceCode
                    country
                    countryCodeV2
                    phone
                }
                customerAcceptsMarketing
                lineItems(first:50) {
                    edges {
                        node {
                            name
                            variant {
                                name
                                barcode
                            }
                            discountedUnitPriceSet {
                                shopMoney {
                                    amount
                                    currencyCode
                                }
                            }
                            discountedTotalSet {
                                shopMoney {
                                    amount
                                    currencyCode
                                }
                            }
                            quantity
                        }
                    }
                }
                            }
        }
    }
}
        """
    ) {
        bulkOperation {
            id
            status
        }
        userErrors {
            field
            message
        }
    }
}

 

The operation runs as expected and I get back most of the data, including the billingAddress. But the shippingAdddress node is missing. What am I doing wrong?

Accepted Solution (1)

DrZane
Visitor
2 1 0

This is an accepted solution.

Local cache issue, goddammit!!

View solution in original post

Reply 1 (1)

DrZane
Visitor
2 1 0

This is an accepted solution.

Local cache issue, goddammit!!