Ergonode docs
Search…
GraphQL API
GraphQL API
Overview
Query types
Error codes
Schema
CHANGELOG
Changelog
Breaking changes
Guides
Authentication
Basic query tutorial
Integrating data
Query examples
List of simple products with attributes
List of 50 grouped products with simple and variable products
List of all multimedia
List of product relations for a specific product
Creating simple product with mutation
Creating Grouping product with mutation
Adding child product to grouping one
Set quantity of child product
Removing child product from grouping one
Creating variable product with mutation
Adding variant to variable product
Remove variant product from variable one
Multimedia create
Change name of multimedia
Set alternative vaule for a multimedia
Multimedia delete
Powered By
GitBook
Adding child product to grouping one
That's how you add child product to grouping one.
Please bear in mind, that quantity isn't required and if used, cannot be string - must be Integer (so there's no quotation mark)
Both products must exist before this operation.
1
mutation {
2
productGroupingAddChild(
3
input: { sku: "SKU_GR_PRODUCT", childSku: "SKU_test2", quantity: 1 }
4
) {
5
__typename
6
}
7
}
Copied!
Previous
Creating Grouping product with mutation
Next
Set quantity of child product
Last modified
11d ago
Copy link