@pintahub/shopify-api 1.8.8 → 1.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ const handleErrors_1 = require("../../../utils/handleErrors");
|
|
|
15
15
|
class SearchProducts extends ActionBuilder_1.ActionBuilder {
|
|
16
16
|
run(args) {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
const { after, limit } = Object.assign({}, args);
|
|
18
|
+
const { after, limit, query: queryStr } = Object.assign({}, args);
|
|
19
19
|
const vLimit = limit || 10;
|
|
20
20
|
const query = `
|
|
21
21
|
{
|
|
@@ -24,6 +24,7 @@ class SearchProducts extends ActionBuilder_1.ActionBuilder {
|
|
|
24
24
|
sortKey: UPDATED_AT
|
|
25
25
|
reverse: true
|
|
26
26
|
${after ? `after: "${after}"` : ''}
|
|
27
|
+
${queryStr ? `query: "${queryStr}"` : ''}
|
|
27
28
|
) {
|
|
28
29
|
nodes {
|
|
29
30
|
id
|