Novacare blog

Upgrade to Sanity Studio v3

The latest version of the Sanity editor interface, Sanity Studio v3, was launched in December 2022. It is now the actively maintained version, whereas Sanity Studio v2 is deprecated. Improvements from v2 to v3 includes * Improved developer experience * New global search filters * Easy switching between content environments * Faster developers tooling,…

Filtering an array for specific types with GROQ

In Sanity, you can have arrays that contain different objects. But what if we want to filter out the specific types inside the array when we run a query? A problem I came across was how to map the different Sanity objects to .NET objects based on their type. Disclaimer:…

Easier bulk deletion of Sanity documents, using Sanity CLI

Yesterday I wrote a kind of intricate blog post on how to bulk delete Sanity documents using Sanity CLI, Notepad++ and regex [https://blog.novacare.no/bulk-deletion-of-sanity-documents-using-sanity-cli/]. My closing phrase of the blog post was. > Do you know an easier way? Luckily for me, Knut Melvær [https://twitter.com/…