Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Graphql query performance

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)