Hello, i’m trying to create product-subscription with requiresSellingPlan=true and after publish it on online store. I can get all available publications, but how to publish only to Online Store, because rest of them will through error
Hi @Artem_Fokin did you found the solution?
Hey @Artem_Fokin and @huykon225
You can use the publishablePublish mutation to publish your product to a specified publication like the online store.
You can query the publications if you’re unsure of the online store ID to use.
Hey @KyleG-Shopify this mean I need call graphql multiple. My idea is whether an graphql to do it in 1 time calling API
Hey @huykon225 currently it’s not possible in a single mutation.
Working with products though, the productSet mutation is great for syncing multiple components in a single call (outside of publications) :
Yeah I known. My concern only about how to publication product with less APIs
I totally understand that. I’ll pass the feedback on to our product teams!
Thank you @KyleG-Shopify