I get back product data and I create a product with its data.
I have to create a field field_stock (Stock level) in variations.
I create variations like this :
$variation = ProductVariation::create(['type' => 'default', 'sku' => 'sku1', 'status' => TRUE, 'price' => $price]);
But I do not know how to add the value in the field_stock.
How I can do that ?