-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeshConfig.extend
More file actions
80 lines (80 loc) · 2.53 KB
/
meshConfig.extend
File metadata and controls
80 lines (80 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"meshConfig": {
"sources": [
{
"name": "Venia",
"handler": {
"graphql": {
"endpoint": "https://venia.magento.com/graphql"
}
}
},
{
"name": "Inventory",
"handler": {
"JsonSchema": {
"baseUrl": "https://adobeioruntime.net/apis/283976-140beigesilkworm-stage",
"operations": [
{
"type": "Query",
"field": "inventory",
"path": "adl/skus_demo?skus={args.skus}",
"method": "GET",
"argTypeMap": {
"skus": {
"type": "string"
}
},
"responseSample": "./schemaSamples/inventory.json"
}
]
}
}
},
{
"name": "Discounts",
"handler": {
"JsonSchema": {
"baseUrl": "https://adobeioruntime.net/apis/283976-140beigesilkworm-stage",
"operations": [
{
"type": "Query",
"field": "discounts",
"path": "/adl/demotest1",
"method": "GET",
"responseSample": "./schemaSamples/discounts.json"
}
]
}
},
"transforms": [
{
"filterSchema": {
"mode": "bare",
"filters": [
"Query.!inventory"
]
}
}
]
}
],
"additionalTypeDefs": "extend interface ProductInterface { inventory_details: query_inventory_products_items } extend type ConfigurableProduct { inventory_details: query_inventory_products_items } extend type SimpleProduct { inventory_details: query_inventory_products_items } extend type VirtualProduct { inventory_details: query_inventory_products_items } extend type DownloadableProduct { inventory_details: query_inventory_products_items } extend type BundleProduct { inventory_details: query_inventory_products_items } extend type GiftCardProduct { inventory_details: query_inventory_products_items } extend type GroupedProduct { inventory_details: query_inventory_products_items }",
"additionalResolvers": [
"./resolvers/inventory.js",
"./resolvers/discounts.js"
],
"responseConfig": {
"CORS": {
"methods": [
"GET",
"POST"
],
"origin": [
"https://5f4tq9-3000.csb.app",
"https://gw8q84-3000.csb.app"
]
}
}
}
}