Graphql query performance

samirish
Visitor
3 0 1

Create a product with single variant with SKU/Barcode  'sku-xyz' using Graphql/Admin API and then immediately query it using Barcode/SKU, example:

 

 

query FilterProducts {
  products( first: 1, query: "sku:sku-xyz") {
    edges {
      node {
        id
      }
    }
  }
}

 

 

The query returns empty result ( empty edges ), retry after around 10+ seconds and the query returns the product, any suggestions ?

Replies 0 (0)