Skip to content

Commit

Permalink
Fix example for filtering products by a single category slug
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed May 5, 2021
1 parent 4214c90 commit 3fdb255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/01_Products.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const commerce = new Commerce('{your_public_key}');

// Fetch products specifying a category slug
commerce.products.list({
category_slug: 'shoes',
category_slug: ['shoes'],
}).then(response => response.data);

// Fetch products specifying multiple category slugs
Expand Down

0 comments on commit 3fdb255

Please sign in to comment.