users.filterBy How to query several role?


I try to query several user role in a multiselect field like this:

            label: Evaluators
            type: multiselect
            options: query
            query: users.filterBy('role', 'in', ['admin','evaluator']).sortBy("name", "desc")

But it doesn’t work, is it possible with another syntax?

No, that is not possible yet (will be in 3.2), currently, you can query a collection.

Ok I will try with a collection :+1: