getAllByType filter document by group field

Hey Folks! I wanna filter documents by their groups toggle but gives me null

Even tried simple filtering to test
Didn't work too
Could you give me a hand of help

Appreciated

Here is my code:

const { client } = usePrismic();

const { data: paintings } = await useAsyncData("paintings", () =>
  client.getAllByType("gallery",{
    filters: [
    prismic.filter.at('my.gallery.paintings.display', true),
  ],
  })
);

Hey Zumrad,

I've never tried filtering by a boolean. It looks like your boolean is inside a group field. Have you tried moving it to the top level of your document?

Sam