getCustomer graphql response very out of date / old cache

CRStatement
Shopify Partner
4 1 1

I have a graphql query I am running from an app, hitting {store-url}/graphql

 

Consider the following example set of tags on a customer:

 

AAA,BBB,CCC

and this query:

  query getCustomers(
    $numCustomersFirst: Int
    $numCustomersLast: Int
    $afterCursor: String
    $beforeCursor: String
    $query: String
  ) {
    customers(
      first: $numCustomersFirst
      last: $numCustomersLast
      after: $afterCursor
      before: $beforeCursor
      query: $query
      reverse: true
    ) {
      pageInfo {
        hasNextPage
        hasPreviousPage
      }
      edges {
        cursor
        node {
          id
          legacyResourceId
          email
          firstName
          lastName
          displayName
        }
      }
    }
  }

and these variables:

{
  "afterCursor": null,
  "beforeCursor": null,
  "numCustomersFirst": 50,
  "numCustomersLast": null,
  "query": "tag:'AAA'"
}

We would expect to have the customer returned.

 

The problem is this: If I remove the tag "AAA" from the customer, the query still returns the customer in the response to the query (along with other customers sharing the "AAA" tag).

 

The problem is also present in reverse, so if I add the tag "DDD" and update the variables accordingly, the customer is NOT returned.

 

I have seen this on two sites, with the issue starting about 1 week ago (~1st March 2023).
Testing in the Shopify graphiql app shows this behaviour on all currently supported API versions

Replies 0 (0)