A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi
I unfortunately ran into a situation where I had a make.com task that was adding product tags with a space at the beginning of each tag. So now I am trying to fix this, but I can't seem to make a graphQL API call that only pulls products with the tag that has a space at the beginning, it pulls all products with the tag whether there's a space at the front or not. Does anyone know how I can isolate products that are tagged with a tag that starts with a space?
Hi @Reliked,
Thanks for your post. We've been having difficulty replicating there being a space at the beginning of tags as the system tries to prevent that from happening in the web admin as well as through the REST and GraphQL API's, which is making it difficult to test querying for them that way. Some questions that come to mind are:
Hope you have a great day
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
The same thing happended to me using make.com, when I se tags[] to preserve the tags the customer already has, this integration in adding a space in front of current customer tags.
Here is a fix on make.com, instead of using Tags[] to keep current tags, write a string with all the tags: {{trim(split(join(distinct(2.tags); ",") + ","))}}, in this way, tags will be preserved without the extra space at the beginning.