Browse Source

+createdAt

Ivan Asmer 5 years ago
parent
commit
30593b5540
1 changed files with 5 additions and 0 deletions
  1. 5 0
      index.js

+ 5 - 0
index.js

@@ -46,6 +46,7 @@ const anonResolvers = ['login', 'createUser'];
 
         type User {
              _id: String
+             createdAt: String
              login: String
              nick : String
              orders: [Order]
@@ -53,12 +54,14 @@ const anonResolvers = ['login', 'createUser'];
 
         type Category {
             _id: ID,
+            createdAt: String
             name: String!,
             goods: [Good]
         }
 
         type Good {
             _id: ID,
+            createdAt: String
             name: String!,
             description: String
             price: Float
@@ -68,6 +71,7 @@ const anonResolvers = ['login', 'createUser'];
 
         type OrderGood {
             _id: ID,
+            createdAt: String
             price: Float,
             count: Float,
             good: Good,
@@ -77,6 +81,7 @@ const anonResolvers = ['login', 'createUser'];
 
         type Order {
             _id: ID
+            createdAt: String
             orderGoods: [OrderGood]
             total: Float
         }