Skip to content

Commit 9b95235

Browse files
author
Vitaliy Boyko
committed
graphQl-908: deprecated region_id in customer schema
1 parent d9d4b82 commit 9b95235

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ input CustomerAddressInput {
4242
input CustomerAddressRegionInput @doc(description: "CustomerAddressRegionInput defines the customer's state or province") {
4343
region_code: String @doc(description: "The address region code")
4444
region: String @doc(description: "The state or province name")
45-
region_id: Int @doc(description: "Uniquely identifies the region")
45+
region_id: Int @doc(description: "region_id is deprecated. Region ID is excessive on storefront and region code should suffice for all scenarios")
4646
}
4747

4848
input CustomerAddressAttributeInput {
@@ -99,7 +99,7 @@ type CustomerAddress @doc(description: "CustomerAddress contains detailed inform
9999
id: Int @doc(description: "The ID assigned to the address object")
100100
customer_id: Int @doc(description: "The customer ID")
101101
region: CustomerAddressRegion @doc(description: "An object containing the region name, region code, and region ID")
102-
region_id: Int @doc(description: "A number that uniquely identifies the state, province, or other area")
102+
region_id: Int @deprecated(reason: "Region ID is excessive on storefront and region code should suffice for all scenarios")
103103
country_id: String @doc(description: "The customer's country")
104104
street: [String] @doc(description: "An array of strings that define the street number and name")
105105
company: String @doc(description: "The customer's company")
@@ -122,7 +122,7 @@ type CustomerAddress @doc(description: "CustomerAddress contains detailed inform
122122
type CustomerAddressRegion @doc(description: "CustomerAddressRegion defines the customer's state or province") {
123123
region_code: String @doc(description: "The address region code")
124124
region: String @doc(description: "The state or province name")
125-
region_id: Int @doc(description: "Uniquely identifies the region")
125+
region_id: Int @deprecated(reason: "Region ID is excessive on storefront and region code should suffice for all scenarios")
126126
}
127127

128128
type CustomerAddressAttribute {

0 commit comments

Comments
 (0)