Skip to content

Commit a253c3a

Browse files
authored
Merge pull request #88 from Shopify/surma/vite
Switch to Vite and auto-load tools
2 parents 40797ea + 58ec866 commit a253c3a

File tree

23 files changed

+1241
-1174
lines changed

23 files changed

+1241
-1174
lines changed

__mocks__/fs.cjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

__mocks__/fs/promises.cjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

mock-schemas/admin_2025-01-mock.json

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"data": {
3+
"__schema": {
4+
"types": [
5+
{
6+
"kind": "OBJECT",
7+
"name": "Product",
8+
"description": "A product in the shop",
9+
"fields": [
10+
{
11+
"name": "id",
12+
"args": [],
13+
"type": {
14+
"kind": "SCALAR",
15+
"name": "ID",
16+
"ofType": null
17+
},
18+
"isDeprecated": false
19+
},
20+
{
21+
"name": "title",
22+
"args": [],
23+
"type": {
24+
"kind": "SCALAR",
25+
"name": "String",
26+
"ofType": null
27+
},
28+
"isDeprecated": false
29+
}
30+
]
31+
},
32+
{
33+
"kind": "INPUT_OBJECT",
34+
"name": "ProductInput",
35+
"description": "Input for a product",
36+
"fields": null,
37+
"inputFields": [
38+
{
39+
"name": "title",
40+
"type": {
41+
"kind": "SCALAR",
42+
"name": "String",
43+
"ofType": null
44+
},
45+
"defaultValue": null
46+
}
47+
]
48+
},
49+
{
50+
"kind": "OBJECT",
51+
"name": "Order",
52+
"description": "An order in the shop",
53+
"fields": [
54+
{
55+
"name": "id",
56+
"args": [],
57+
"type": {
58+
"kind": "SCALAR",
59+
"name": "ID",
60+
"ofType": null
61+
},
62+
"isDeprecated": false
63+
}
64+
]
65+
},
66+
{
67+
"kind": "OBJECT",
68+
"name": "QueryRoot",
69+
"fields": [
70+
{
71+
"name": "product",
72+
"description": "Get a product by ID",
73+
"args": [
74+
{
75+
"name": "id",
76+
"type": {
77+
"kind": "SCALAR",
78+
"name": "ID",
79+
"ofType": null
80+
},
81+
"defaultValue": null
82+
}
83+
],
84+
"type": {
85+
"kind": "OBJECT",
86+
"name": "Product",
87+
"ofType": null
88+
}
89+
},
90+
{
91+
"name": "order",
92+
"description": "Get an order by ID",
93+
"args": [
94+
{
95+
"name": "id",
96+
"type": {
97+
"kind": "SCALAR",
98+
"name": "ID",
99+
"ofType": null
100+
},
101+
"defaultValue": null
102+
}
103+
],
104+
"type": {
105+
"kind": "OBJECT",
106+
"name": "Order",
107+
"ofType": null
108+
}
109+
}
110+
]
111+
},
112+
{
113+
"kind": "OBJECT",
114+
"name": "Mutation",
115+
"fields": [
116+
{
117+
"name": "productCreate",
118+
"description": "Create a product",
119+
"args": [
120+
{
121+
"name": "input",
122+
"type": {
123+
"kind": "INPUT_OBJECT",
124+
"name": "ProductInput",
125+
"ofType": null
126+
},
127+
"defaultValue": null
128+
}
129+
],
130+
"type": {
131+
"kind": "OBJECT",
132+
"name": "Product",
133+
"ofType": null
134+
}
135+
}
136+
]
137+
}
138+
]
139+
}
140+
}
141+
}

0 commit comments

Comments
 (0)