|
@@ -35,6 +35,7 @@ const upload = require('multer')({ dest: uploadPath })
|
|
|
|
|
|
type Image {
|
|
|
_id: ID,
|
|
|
+ createdAt: String
|
|
|
text: String,
|
|
|
url: String,
|
|
|
originalFileName: String,
|
|
@@ -54,6 +55,7 @@ const upload = require('multer')({ dest: uploadPath })
|
|
|
|
|
|
type Category {
|
|
|
_id: ID,
|
|
|
+ createdAt: String
|
|
|
name: String,
|
|
|
goods: [Good]
|
|
|
image: Image
|
|
@@ -69,7 +71,8 @@ const upload = require('multer')({ dest: uploadPath })
|
|
|
|
|
|
type Good {
|
|
|
_id: ID,
|
|
|
- name: String!,
|
|
|
+ createdAt: String
|
|
|
+ name: String,
|
|
|
description: String
|
|
|
price: Float
|
|
|
orderGoods: [OrderGood]
|
|
@@ -89,6 +92,7 @@ const upload = require('multer')({ dest: uploadPath })
|
|
|
|
|
|
type OrderGood {
|
|
|
_id: ID,
|
|
|
+ createdAt: String
|
|
|
price: Float,
|
|
|
count: Float,
|
|
|
good: Good,
|
|
@@ -106,6 +110,7 @@ const upload = require('multer')({ dest: uploadPath })
|
|
|
|
|
|
type Order {
|
|
|
_id: ID
|
|
|
+ createdAt: String
|
|
|
total: Float
|
|
|
orderGoods: [OrderGood]
|
|
|
owner: User
|