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

API hybrid solution: Rest API + GraphQL cache issue

API hybrid solution: Rest API + GraphQL cache issue

samirish
Visitor
3 0 1

Hello, 
The only possible method to retrieve a variant given its barcode is by doing a GraphQL request:

{products(query: "barcode:value", first: 1) { edges { node { id } } }}

Create a product and variants ( Rest API ) then query the variant/product ( GraphQL ) using previous request it will not find the variant/product but repeating the GraphQL request in a minute would find it.
The only possible solution I see is to total convert to GraphQL which I want to avoid at this time

Replies 0 (0)