I asked a similar question a while back. I was simply looking to find every document using a particular slice (without refactoring) but someone on the Prismic team pointed us in the right direction with a sample script:
dan.duett
(Dan Duett)
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| FAQ: Find all documents that use a particular slice? | 10 | 1615 | July 23, 2025 | |
| Find all instances of a particular slice | 0 | 840 | February 12, 2021 | |
| Add a list of documents that contain a particular slice | 1 | 832 | September 30, 2021 | |
| Query by slice id | 3 | 1921 | February 16, 2021 | |
| Filter all documents that have instantiated a slice variation | 2 | 434 | July 8, 2022 |