Client for the supported facet queries on the Open Food Facts query service.
Return the number of distinct values in a facet, optionally restricted by a product filter.
Return grouped facet values and product counts. This method uses the service's supported $match, $group, $limit, and $skip stages.
$match
$group
$limit
$skip
const brands = await client.query.getFacetValues("brands_tags", { filter: { countries_tags: "en:france" }, limit: 20,}); Copy
const brands = await client.query.getFacetValues("brands_tags", { filter: { countries_tags: "en:france" }, limit: 20,});
Client for the supported facet queries on the Open Food Facts query service.