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),
],
})
);