How to get document list missing certain slice?

Hello Prismic,

I am looking for how to fetch a document list that doesn't contain a specific slice.

For example, I want to find documents missing meta_data slice (shared slice).

Is there a way to do it with Prismic API?

Hello @woolim, thanks for reaching out.

The REST API doesn’t natively have a predicate that does this. You'd need to create a function in the front end that checks for a missing Slice type "slice_type" inside each Slice zone.

2 Likes

Thank you !