Shopify cartCreate Mutation Timing Out with @defer – Any Fixes?

We are using the cartCreate mutation to obtain the available deliveryGroups for a single item in a specific ZIP code, using the @defer directive.

However, we are constantly encountering a timeout in the query response.

Does anyone know what we can do to resolve this timeout?

This is the request we are making:

mutation CartCreate {
cartCreate(
input: {
lines: [
{
quantity: 1
merchandiseId: “”
}
]
buyerIdentity: {
email: “”,
countryCode: BR,
deliveryAddressPreferences: [{
deliveryAddress: {
province: “”,
country: “”,
zip: “”
}
}]
}
}
) {
cart {
checkoutUrl
createdAt
id
…DeliveryGroups @defer
}
userErrors {
field
message
}
}
}
fragment DeliveryGroups on Cart {
deliveryGroups(first: 10, withCarrierRates: true) {
edges {
node {
deliveryOptions {
title
handle
deliveryMethodType
estimatedCost {
amount
}
}
selectedDeliveryOption {
title
handle
deliveryMethodType
estimatedCost {
amount
currencyCode
}
}
}
}
}
}

And this is the response we are constantly receiving:
“\r\n–graphql\r\nContent-Type: application/json\r\nContent-Length: 1130\r\n\r\n{"data":{"cartCreate":{"cart":{"createdAt":"2025-02-04T00:17:37Z","id":"gid://shopify/Cart/1"},"userErrors":}},"hasNext":true}\r\n\r\n–graphql\r\nContent-Type: application/json\r\nContent-Length: 224\r\n\r\n{"incremental":[{"path":["cartCreate","cart"],"data":null,"errors":[{"message":"Timed out","locations":[{"line":114,"column":3}],"path":["cartCreate","cart","deliveryGroups"],"extensions":{"loopCount":5}}]}],"hasNext":false}\r\n\r\n–graphql–”

Here are also the links to the APIs we are using: