🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Is it Possible to Filter a Document by how many Views it has as a Field?

1 replies
Last updated: Sep 8, 2022
Hi, how can I possibly filter a document by how many views it has as a field ?
Sep 8, 2022, 5:35 PM
There’s nothing built into Sanity to track views, so you’d need to implement that aspect yourself. You could then store that data (either on the document, in a separate document, or outside of Sanity) and would need to factor it into your queries.
Sep 8, 2022, 5:39 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?