Multiple facet selection using refine method

is it possible I can select multiple facet using refine method as we know we can pass something like below to refine the value:

refine(value);

Hi @rahul.kumar – the refine() method only takes a single facet value as an input, so to toggle multiple facets you’d need to make one call per facet.

  [...container.querySelectorAll('a')].forEach(element => {
    element.addEventListener('click', event => {
      event.preventDefault();
      refine(event.currentTarget.dataset.value);
    });
  });

thanks @chuck.meyer for the answer

Hi @chuck.meyer
one more thing, I want to display nothing(no results/hits) if I didn’t find the facet.
for example:
refine([‘AC’]) and AC(facet value) doesn’t exist then it should render nothing/no results but right now it is rendering still the earlier hits
is it possible, pls suggest

Thanks