Added categories to products
This commit is contained in:
+1
-24
@@ -124,6 +124,7 @@ const typeDefs = gql`
|
||||
updated: DateTime
|
||||
printProducts: [PrintProduct]
|
||||
blacklisting: [ProductBlacklist]
|
||||
categories: [Category]
|
||||
}
|
||||
|
||||
enum ProductGroup {
|
||||
@@ -157,42 +158,18 @@ const typeDefs = gql`
|
||||
|
||||
export { typeDefs };
|
||||
/**
|
||||
|
||||
|
||||
type Category {
|
||||
id: ID!
|
||||
name: String
|
||||
}
|
||||
|
||||
|
||||
type Designer {
|
||||
id: ID!
|
||||
name: String
|
||||
orderRows(fromDate: Date, toDate: Date): [OrderRow]
|
||||
}
|
||||
|
||||
type PrintProduct {
|
||||
insertedDate: DateTime!
|
||||
updatedDate: DateTime
|
||||
}
|
||||
|
||||
type Product {
|
||||
categories: [Category]
|
||||
designer: Designer
|
||||
insertedDate: DateTime!
|
||||
updatedDate: DateTime
|
||||
}
|
||||
|
||||
type ProductBlacklist {
|
||||
market: Market
|
||||
insertedDate: DateTime!
|
||||
updatedDate: DateTime
|
||||
}
|
||||
|
||||
type Query {
|
||||
product(id: Int!): Product
|
||||
designer(id: Int!): Designer
|
||||
designers: [Designer]
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user