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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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)