Add collections (#172)

This commit is contained in:
Fredrik Ringqvist
2025-04-29 14:00:35 +02:00
committed by GitHub
parent efab961a29
commit 10fa25b230
7 changed files with 164 additions and 0 deletions
+9
View File
@@ -41,6 +41,8 @@ type Query {
signedFileUploadURL(config: SignedUploadURLInput): SignedUploadURL
@cacheControl(maxAge: 0)
translate(input: TranslateInput!): StringResult!
collections: [Collection]
collection(id: Int!): Collection
}
type HealthCheck {
@@ -260,6 +262,7 @@ type Product {
printProducts(groups: [ProductGroup]): [PrintProduct]
blacklisting: [ProductBlacklist]
categories: [Category]
collections: [Collection]
designerId: Int
designer: Designer
keywords: [Keyword]
@@ -553,3 +556,9 @@ type Mutation {
): StringResult
massUpdatePublishingDate(productIds: [Int]!, date: DateTime!): StringResult
}
type Collection {
id: ID!
name: String!
productIds: [Int!]!
}