MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
940 stars 279 forks source link

QUESTION: Params options? #562

Closed andykimchris closed 1 year ago

andykimchris commented 1 year ago

Hello, this is mostly a question on the documentation. There is no mention of which params options can be passed for query? Is it only limit that can be used?

(async () => {
  let params = { limit: 10 };

  do {
    const products = await shopify.product.list(params);

    console.log(products);

    params = products.nextPageParameters;
  } while (params !== undefined);
})().catch(console.error);
lpinca commented 1 year ago

Is it only limit that can be used?

No, you can use all supported parameters.

lpinca commented 1 year ago

I'm closing as answered.

andykimchris commented 1 year ago

Thank you @lpinca much appreciated.