Get only a specific field #101
-
|
Can I filter the response, e.g. ? This would enable me to avoid pagination and over-fetching. |
Beta Was this translation helpful? Give feedback.
Answered by
rodrigoddalmeida
Jan 22, 2023
Replies: 1 comment
-
|
You can filter/allowlist which fields you want to return in the response object by using the // through the REST API
/products?fields[0]=tags
// or Swell.js
await swell.products.list({
fields: ["tags"]
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
logeshswell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can filter/allowlist which fields you want to return in the response object by using the
fieldsparam: