Hello
Is there a way to publish directy a product to all channels available?
mutation ProductCreate($input: ProductInput!, $media: [CreateMediaInput!] ) {
productCreate(input: $input, media: $media) {
userErrors {
field
message
}
product {
title
handle
id
media (first: 50) {
edges {
cursor
node {
status
... on MediaImage {
id
image {
id
originalSrc
}
}
}
}
pageInfo {
hasNextPage
}
}
variants (first: 25) {
edges {
cursor
node {
id
sku
title
}
}
pageInfo {
hasNextPage
}
}
}
}
}
Or/And directly update:
mutation ProductUpdate($input: ProductInput!) {
productUpdate(input: $input) {
userErrors {
field
message
}
product {
title
id
variants (first: 25) {
edges {
cursor
node {
id
sku
title
}
}
pageInfo {
hasNextPage
}
}
}
}
}