Is it possible to get the channels of a product?
I already have the 2 permissions (publications and sales channel) to read and write
I have an online store and POS and more than 200 products linked to both of them
Tried a lot of fields, cant find the correct one!
Can you indicate me the field? Spent the last hours looking for that info at the documentation
My query:
// GET SINGLE PRODUCT BY HANDLE WITH ALL THE FIELDS
const singleProductWithMedia = `
query ($handle: String!) {
productByHandle(handle: $handle) {
id
status
title
handle
vendor
productType
metafields(first: 3) {
edges {
node {
id
key
}
}
}
media (first: 50) {
edges {
cursor
node {
alt
status
... on MediaImage {
id
image {
id
originalSrc
}
}
}
}
pageInfo {
hasNextPage
}
}
variants (first: 10) {
edges {
cursor
node {
id
title
sku
media (first: 1) {
edges {
node {
... on MediaImage {
id
}
}
}
}
metafields(first: 20) {
edges {
node {
id
key
}
}
}
selectedOptions {
name
value
}
}
}
pageInfo {
hasNextPage
}
}
}
}`;