When retrieving publications, you could previously use the “name” field to retrieve the publication name, for example “Online Store”.
The “name” field is now deprecated, and the recommended alternative to use is catalog title. The “catalog” field returns null for all publications on my store, while the deprecated “name” field returns the correct name.
Screenshot of graphiql app request for both name and catalog title:
HI Meandillar,
I’ve connected with the relevant team on this, and they are aware that catalog.title
doesn’t produce the identical output as Publication.name
- but they are planning to address this.
As a current workaround, the recommendation is to get the name from the app for the publication catalog via the ResourcePublicationConnection
on product, eg:
query productPublicationsPOS {
product(id: "gid://shopify/Product/1") {
id
resourcePublications(first: 10) {
nodes {
isPublished
publication {
id
catalog {
... on AppCatalog {
apps(first: 10) {
nodes {
id
handle
title
}
}
}
}
}
}
}
}
}
@Liam-Shopify is there an ETA on when this might get addressed? The workaround you provided works for products but strangely this does not work for collections which seems odd. This makes it very inconvenient to manage it for downstream applications.
Yes, I could also use help with this. I am trying to just get the name of all of the publications that exist so I know where to publish my products now that I have to do that with graphQL. Below is how I am trying to do it but nothing is showing for on AppCatalog
query GetPublications {
publications(first: 10) {
edges {
node {
id
catalog{
id
title
... on AppCatalog {
apps(first: 10){
nodes{
id
handle
title
}
}
}
}
}
}
}
}
@talktohenryj from what I understand the only way to get the list of publications that exist is via the product query provided by Liam. The catalog from publications and collections query always return null which is a bug which needs to be addressed by the Shopify team.
I was able to use the name on the catalog even though it is depreciated. Not sure why but using that as the first query and the way Liam mentioned as a back up for the time being.
My problem now is that I can’t publish for some reason. It says I need “read_product_listings” scope to use publishablePublish which doesnt make sense to me based on the documentation. Waiting on some responses from Shopify but I know they’re likely off right now.
1 Like
Hi folks,
There is currently no ETA to share on when this will be improved - it will require making a number of different changes so is not a straightforward update. I’ll post here when I learn more.
1 Like
Will we be allowed to use the name field on publications query till then? Otherwise, it is impossible to identify the publication id based on name to be used further in publishablePublish mutation.
catalog id is different for different Shopify accounts so we cannot rely on that information.
@Liam-Shopify It has been nearly two years since you deprecated publication.name
and publication.app
, and the documentation advises using catalog.title
and AppCatalog.apps
instead. Unfortunately, catalog
still returns null.
Instead of wasting developers’ time, why not remove the deprecation warning until there’s a working solution to replace the field? Since no one has an ETA for a fix, and it might take another two years, reintroduce the warning only when the replacement is ready. In the meantime, we can safely continue using the existing options.
Solved: GraphQL publications with catalogType APP has no catalog attachment - Shopify Community
1 Like
Hi folks - connecting with the product team on this to see what their recommendations are for the short-term.
Hey folks,
Would fetching catalogs like this work?
{
catalogs(first: 10, type: APP) {
nodes {
publication {
id
}
... on AppCatalog {
apps(first: 1) {
nodes {
title
}
}
}
}
}
}
The product team who own this area have said the best method is to get the channel through the catalog and access the data directly from the channel itself.
2 Likes
Ok. Let me try that.
I want to understand what the process is of removing a field after marking it deprecated. Will it be announced before removal? Will it be removed on all versions once it is removed?
What is the timeline for removing publication.name?
Just want to ensure I don’t do this in a hurry. I see that I can access publication.name even in 2025-04 API version. So, can I be sure it will be available till I use 2025-04 version?
@Liam-Shopify
TIA