After creating a product how can I publish it to the online store?

Shopify Partner
9 1 2

I'm creating new product using the productCreate mutation. Now I want to publish it to my online store.

To do that I'm querying the list of publications using the publications query but the challenge I'm facing is to determine which publication id belongs to the online store? Previously they had a "name" property which is now deprecated. 


Once I become certain that this id belongs to the online store then I can publish it using the publishablePublish mutation.

Also how can I set the inventory quantity of a newly created product?



Replies 2 (2)
Shopify Partner
784 105 105

hi, @Wakil_eFoli 





Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here
Shopify Partner
9 1 2

I don't see anything relevant to my question i.e. publication or inventory.