Skip to content

Commit 1f189e2

Browse files
committed
update schema
1 parent c19907c commit 1f189e2

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

order-routing/javascript/rankers/default/package.json.liquid

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"plugins": [
1818
"typescript",
1919
"typescript-operations"
20-
],
21-
"config": {
22-
"enumsAsTypes": "true",
23-
"useImplementingTypes": "true"
24-
}
20+
]
2521
}
2622
}
2723
},

order-routing/javascript/rankers/default/schema.graphql

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ type FulfillmentGroup {
25952595
"""
25962596
A list of inventory locations for the fulfillment group.
25972597
"""
2598-
inventoryLocations: [InventoryLocation!]
2598+
inventoryLocations: [InventoryLocation!]!
25992599
}
26002600

26012601
"""
@@ -2943,13 +2943,23 @@ type Market {
29432943
"""
29442944
A geographic region which comprises a market.
29452945
"""
2946-
regions: [Region!]!
2946+
regions: [MarketRegion!]!
2947+
}
2948+
2949+
"""
2950+
Represents a region.
2951+
"""
2952+
interface MarketRegion {
2953+
"""
2954+
The name of the region.
2955+
"""
2956+
name: String
29472957
}
29482958

29492959
"""
29502960
A country which comprises a market.
29512961
"""
2952-
type MarketRegionCountry implements Region {
2962+
type MarketRegionCountry implements MarketRegion {
29532963
"""
29542964
The two-letter code for the country.
29552965
"""
@@ -3207,21 +3217,6 @@ input RankedLocation {
32073217
rank: Int!
32083218
}
32093219

3210-
"""
3211-
Represents a region.
3212-
"""
3213-
interface Region {
3214-
"""
3215-
The code of the region.
3216-
"""
3217-
code: String
3218-
3219-
"""
3220-
The name of the region.
3221-
"""
3222-
name: String
3223-
}
3224-
32253220
"""
32263221
A void type that can be used to return a null value from a mutation.
32273222
"""

0 commit comments

Comments
 (0)