Skip to content

Apply new field filters to products list query #399

Answered by logeshswell
BluetyIt asked this question in Help
Discussion options

You must be logged in to vote

I assume that you use swell-js following this doc:
https://developers.swell.is/frontend-api/products

$filters won't work for custom fields. Instead you can try the below snippet:

swellClient.products.list({
  ...
  expand: ["brand_detail"],
  content: {
    custom_field: "test"
  }
});

On a side note, you don't need to open read permissions for content fields which is opened by default. But, you need to open up input fields for write permissions following the same documentation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by logeshswell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants