Add related mutations (#43)

This commit is contained in:
Niklas Fondberg
2021-09-15 14:01:07 +02:00
committed by GitHub
parent 0a786d6754
commit c4915cb15f
4 changed files with 96 additions and 6 deletions
+5 -1
View File
@@ -263,7 +263,7 @@ type Product {
ref2: String
ref3: String
related: [Product]
wallpaperTypes: [ProductWallpaperType]
wallpaperTypes: [ProductWallpaperType]!
fields: ProductFields
orientation: Orientation
"""
@@ -454,5 +454,9 @@ type Mutation {
productId: Int!
wallpaperTypes: [ProductWallpaperType]!
): Product
addRelatedProducts(productId: Int!, articleNumbers: [String]!): Product
removeRelatedProducts(productId: Int!, relatedProductIds: [Int]!): Product
addKeyword(name: String!, type: KeywordType): Keyword
}