GraphQL. Product tag is cached.

kushniruk
Tourist
4 0 4

Hello, everyone.
I'm having an issue with product tags.
After the update the product tags via API, the graphQL query still works with old product tags.
Only after ~10 seconds, it returns me correct response filtered by a newly added tag.
My query:

 query {
      products(query: "tag:*(my-added-tag)*", first: 10) {
        edges {
          node {
            id
            title
            productType
            images(first: 1) {
              edges {
                node {
                  originalSrc
                  altText
                }
              }
            }
            variants(first: 1) {
              edges {
                node {
                  presentmentPrices(first: 1) {
                    edges {
                      node {
                        price {
                          amount
                          currencyCode
                        }
                      }
                    }
                  }
                  id
                }
              }
            }
          }
        }
      }
  }

Any suggestions? 

Thanks.

 

drovani
Shopify Partner
1 0 2

Bumping this - hoping someone has been able to find a solution!

We have been running into the exact same problem. There is a 10-45s delay between when we write an update to one or more product's tags using the REST API and when that update is reflected in the results of a GraphQL query.

RXVTeam
New Member
1 0 1

Same issue. When our client changes shopify tags and then uses our tool to query (by tag) & process orders, they get out of date information!