Skip to content

Commit bad2ff6

Browse files
committed
Some work
1 parent 90e5227 commit bad2ff6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

graphQL/data/schema.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ const schema = buildSchema(`
66
name: String
77
description: String
88
price: Float
9-
soldout: Boolean
9+
soldout: Soldout
1010
stores: [Store]!
1111
}
1212
13+
enum Soldout {
14+
SOLDOUT
15+
ONSALE
16+
}
17+
1318
type Store {
1419
store: String
1520
}
@@ -27,7 +32,7 @@ const schema = buildSchema(`
2732
name: String
2833
description: String
2934
price: Float
30-
soldout: Boolean
35+
soldout: Soldout
3136
stores: [StoreInput]!
3237
}
3338

graphQL/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"graphql": "^16.8.1",
1818
"graphql-express": "^3.0.0",
1919
"graphql-http": "^1.22.1",
20+
"mongoose": "^8.3.2",
2021
"ruru": "^2.0.0-beta.11"
2122
},
2223
"devDependencies": {

0 commit comments

Comments
 (0)