How to find documents containing bad data in a nested custom component using Groq query.
5 replies
Last updated: Apr 3, 2022
O
We have managed to import some bad data in some documents, in a nested custom component, and I am trying to write a groq query to find what documents contain bad data.The problem is that some articles have ended up with a mark on a custom block, which ends up giving an error when we try to render it, because the marks aren’t a part of the schema. an example of such a bad block:
and similar things, but they all end up either matching 0 documents, or too many documents. any pointers on how I can achieve this filter, or is it easier to just fetch all and manually go through them in javascript?
Apr 3, 2022, 7:26 AM
Hi User. I’m curious if this gets what you’re after: