Multiple queries in Sanity with one request
Format your groq query to get multiple queries in one request to Sanity.io.…
Format your groq query to get multiple queries in one request to Sanity.io.…
Not too long ago Sanity launched what they call field groups. Field groups are exactly what it sounds like, the option to group a bunch of fields.…
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:…
When creating new fields in Sanity, they take up the full width of the editor interface. But if we have a lot of fields that require a short length, we get a lot of unused space. It can also get a bit annoying for an editor to have to scroll…
Sanity [https://www.sanity.io/] has a great way to migrate data. I found myself converting a boolean property to a string in a sanity document. My boolean property acts as a feature toggle that I now want to extend to beta users. I'll do my examples as an airplane…
Sanity recently launched their GROQ-powered webhooks, and they are really powerful! But there is a bug…
The newly released GROQ-powered webhooks for Sanity unlock some interesting new possibilities. Use the query language GROQ to define which documents should trigger a webhook and what its payload should be. See how to post messages directly to Slack!…
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/kmelve]…
Using Sanity Studio, you can delete documents one by one. What if you want to delete hundreds of documents, or you have removed the schema definition so that your documents are no longer visible in Sanity Studio?…
Sanity.io is a headless CMS. Since a headless CMS acts as an API for our raw data, it makes it easy to distribute the data to multiple channels such as mobile, web and wearables.…