Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🀠 July 18th

Validating groq queries with groq-js library.

2 replies
Last updated: Dec 9, 2020
Is there any library to validate a groq query? Creating a functional wrapper for
, and would be cool to have better debugging. πŸ™‚
Dec 2, 2020, 11:01 AM
You can at least parse a groq query with
Β . I don't think it return very useful debugging info yet, but you can at least capture if it's valid.
Dec 2, 2020, 12:18 PM
Awesome, thanks for this! πŸ™‚ It's at least some more info to be able to say if it's valid or not.
Dec 9, 2020, 10:58 AM

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?