Hi,
The field to get the inventory ID changes, depending on if we are printing in the console a product we just created, or if we are printing in the console a product that we are getting.
The product we just created - Field name: product.inventoryItemId
The product we obtain through a query - Field name: product.inventoryItem
In case someone has issues with it. Notice the difference in the name at the end “id”.
Best,
Miguel
???
What is your issue?
And what is your question?
Please one more time in a good clear english if you can, thanks!
Or show some pics and parts of your project.
Me for example, i did understand nothing 
I manage to work it out, but it’s hard to spot. If we want to update the product stock via code, we have to call one field or another field, depending on if we are updating a product that we just created, meaning this product is the return of the promise created. Or if we are getting a product through a query promise.
I am printing in the console the same product, see the difference in the inventory field name in both cases.
Field names changes in response:
Print: response from create product promise

Print: response from a query get product
Sorry, i think i am not able to help here.
Do not really understand the issue.
The issue is that an object response from Wix has a bug, the name of an object attribute field changes. So it can be time consuming before a developer finds that issue. This will happen when someone is using corvid to create and update products. QA should take over it.
What API functions were used for both of these?
To create:
return wixStoresBackend.createProduct(newProduct)
.then((res) => {
To get:
return wixData.query( “Stores/Products” )
.hasSome( “MyCollectionReferenceField” , someValue)
.descending( “anyField” )
.find()
.then((res) => {
Is there any update on this thread?