A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi All,
Is there a way to specify a sales channel for a specific product on the update or create query with GQL ?
Thank you !
Have a good day.
Kind regards.
Damien.
Solved! Go to the solution
This is an accepted solution.
Hi @DamienD
You can use mutation publishablePublish
Find More here: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/publishablepublish
mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
publishablePublish(id: $id, input: $input) {
publishable {
availablePublicationsCount {
count
}
resourcePublicationsCount {
count
}
}
shop {
publicationCount
}
userErrors {
field
message
}
}
}
Thank you
DP.
This is an accepted solution.
Hi @DamienD
You can use mutation publishablePublish
Find More here: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/publishablepublish
mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
publishablePublish(id: $id, input: $input) {
publishable {
availablePublicationsCount {
count
}
resourcePublicationsCount {
count
}
}
shop {
publicationCount
}
userErrors {
field
message
}
}
}
Thank you
DP.