Hello community,
I’m building integration app with Shopify which requires to get list of sales channels. Currently I’m using this query:
{
publications(first: 50) {
nodes {
id
name
}
}
}
which works fine returning the right ID and name, but I see in documentation that name field is deprecated:
Tried to use catalog.title as said using this query:
{
publications(first: 50) {
nodes {
id
catalog{
title
}
}
}
}
but it returns catalog null:
"publications": {
"nodes": [
{
"id": "gid://shopify/Publication/xxx",
"catalog": null
},
{
"id": "gid://shopify/Publication/yyy",
"catalog": null
}
]
}
Am I making something wrong, so I don’t get the channel name using the catalog title? Is there maybe some other way to get the channel names? I don’t want to use deprecated field so it will disappear in near future…
Thx in advance for help!
