Cannot fetch newer products using the JavaScript SDK

Question:
Certain products can be queried but others cannot. Certain products cannot be queried via name or id below you will see an example of 2 products that can be queried with id and the other cannot.

Product:
JavaScript SDK "@wix/sdk": "^1.12.3"

Working Product

"_originQuery": {
        "query": {
            "filter": {
                "id": "f1687879-9872-f502-3414-6e75f72ca4a9"
            },
            "paging": {
                "offset": 0,
                "limit": 50
            }
        }
    },

Doesn’t Work

"_originQuery": {
        "query": {
            "filter": {
                "id": "ed18ec14-578c-38ec-92d4-eef3d894c656"
            },
            "paging": {
                "offset": 0,
                "limit": 50
            }
        }
    }

Example Code

const cursor = this.wixClient({})
      .use(products)
      .queryProducts()
      .eq('id', 'f5335ee1-24d1-421d-820b-90e437120e97');

Silly mistake. I had to enable “Show in online store”

1 Like