We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90e5227 commit bad2ff6Copy full SHA for bad2ff6
2 files changed
graphQL/data/schema.js
@@ -6,10 +6,15 @@ const schema = buildSchema(`
6
name: String
7
description: String
8
price: Float
9
- soldout: Boolean
+ soldout: Soldout
10
stores: [Store]!
11
}
12
13
+ enum Soldout {
14
+ SOLDOUT
15
+ ONSALE
16
+ }
17
+
18
type Store {
19
store: String
20
@@ -27,7 +32,7 @@ const schema = buildSchema(`
27
32
28
33
29
34
30
35
31
36
stores: [StoreInput]!
37
38
graphQL/package.json
@@ -17,6 +17,7 @@
"graphql": "^16.8.1",
"graphql-express": "^3.0.0",
"graphql-http": "^1.22.1",
+ "mongoose": "^8.3.2",
21
"ruru": "^2.0.0-beta.11"
22
},
23
"devDependencies": {
0 commit comments