Skip to content

Commit 5178dba

Browse files
ENGCOM-4811: Cannot return null for non-nullable field AvailableShippingMethod.method_code when no shipping methods are available #526
- Merge Pull Request magento/graphql-ce#526 from XxXgeoXxX/graphql-ce:2.3-develop#524 - Merged commits: 1. b78aa2a 2. 3b48e1d 3. cf46fef
2 parents 18dc53f + cf46fef commit 5178dba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/QuoteGraphQl/etc/schema.graphqls

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,14 @@ type SelectedShippingMethod {
231231
type AvailableShippingMethod {
232232
carrier_code: String!
233233
carrier_title: String!
234-
method_code: String!
235-
method_title: String!
234+
method_code: String @doc(description: "Could be null if method is not available")
235+
method_title: String @doc(description: "Could be null if method is not available")
236236
error_message: String
237237
amount: Float!
238-
base_amount: Float!
238+
base_amount: Float @doc(description: "Could be null if method is not available")
239239
price_excl_tax: Float!
240240
price_incl_tax: Float!
241+
available: Boolean!
241242
}
242243

243244
type AvailablePaymentMethod {

0 commit comments

Comments
 (0)