Add keywords and product types
This commit is contained in:
@@ -12,6 +12,8 @@ const typeDefs = gql`
|
||||
product(id: Int!): Product
|
||||
categories: [Category]
|
||||
category(id: Int!): Category
|
||||
keywords: [Keyword]
|
||||
keyword(id: Int!): Keyword
|
||||
designers(limit: Int): [Designer]
|
||||
designer(id: Int!): Designer
|
||||
}
|
||||
@@ -190,6 +192,12 @@ const typeDefs = gql`
|
||||
categories: [Category]
|
||||
designerId: Int
|
||||
designer: Designer
|
||||
keywords: [Keyword]
|
||||
"""
|
||||
Will be single value return in later release
|
||||
"""
|
||||
type: [ProductType]
|
||||
# Below are for debug
|
||||
api1json: JSON
|
||||
fields_json: JSON
|
||||
}
|
||||
@@ -206,6 +214,12 @@ const typeDefs = gql`
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
enum ProductType {
|
||||
UNKNOWN
|
||||
PHOTO
|
||||
ILLUSTRATION
|
||||
}
|
||||
|
||||
type ProductBlacklist {
|
||||
id: ID!
|
||||
groupId: Int!
|
||||
@@ -231,6 +245,18 @@ const typeDefs = gql`
|
||||
path: String
|
||||
orderRows(filter: FilterInput): [OrderRow]
|
||||
}
|
||||
|
||||
enum KeywordType {
|
||||
NOT_SET
|
||||
COLOR
|
||||
}
|
||||
|
||||
type Keyword {
|
||||
id: Int!
|
||||
value: String!
|
||||
type: KeywordType
|
||||
products: [Product]
|
||||
}
|
||||
`;
|
||||
|
||||
export { typeDefs };
|
||||
|
||||
Reference in New Issue
Block a user