I have created a “Product Geometry” metaobject definition with type product_geometry and the definition field with type json.
I’m filling the available “Product Geometry” values using bulkOperationRunMutation metaobjectUpsert graphql admin api.
The metaobjectUpserts data is something like:
$metaobjects[] = [
'handle' => [
'type' => 'product_geometry',
'handle' => str_slug($title),
],
'input' => [
'fields' => [
[
'key' => 'definition',
'value' => json_encode($definition),
],
],
],
];
After that, I want to relate every product with one “Product Geometry” metaobject value, but I don’t know how.
I’m using bulkOperationRunMutation productSet to update all my products with only one api request.
How can I add the metaobject relation inside the productSet data?
Thanks!
