Skip to content

Commit 4d7d4a8

Browse files
author
Vitaliy Boyko
committed
graphQl-892: Improved strict typing in CartAddressInterface
1 parent db43c11 commit 4d7d4a8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ type Cart {
201201
}
202202

203203
interface CartAddressInterface @typeResolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartAddressTypeResolver") {
204-
firstname: String
205-
lastname: String
204+
firstname: String!
205+
lastname: String!
206206
company: String
207-
street: [String]
208-
city: String
207+
street: [String!]!
208+
city: String!
209209
region: CartAddressRegion
210210
postcode: String
211-
country: CartAddressCountry
212-
telephone: String
211+
country: CartAddressCountry!
212+
telephone: String!
213213
customer_notes: String
214214
}
215215

@@ -229,13 +229,13 @@ type CartItemQuantity {
229229
}
230230

231231
type CartAddressRegion {
232-
code: String
233-
label: String
232+
code: String!
233+
label: String!
234234
}
235235

236236
type CartAddressCountry {
237-
code: String
238-
label: String
237+
code: String!
238+
label: String!
239239
}
240240

241241
type SelectedShippingMethod {

0 commit comments

Comments
 (0)