Twig eloquent request in array

Hello,

I have a tailor model like that :

fields:
    ....
    where:
        label: Où afficher le témoignage ?
        type: checkboxlist
        options:
            accueil: Accueil
            site_vitrine: Site vitrine
            site_ecommerce: Site e-commerce
            referencement: Référencement

So the resulting dump looks like that :

image

My question is, with twig syntax, how can I filter my collection to get only content with where attribute containing “accueil” for example.

{% set records = records.where(????).get() %}

The documentation is quite light on that point.

Thank you for your help

That should be possible with Twig filter and the “in” operator.

Example:

{% for record in records|filter(el => 'accueil' in el.where) %}
  {{ record.where|join(', ') }} {# should only display records that contain 'accueil' in the where attribute #}
{% endfor %}

It works, thank you !