This Friday: Hear from Sanity + Vercel experts on AI and better personalization in e-commerce →

GraphQL vs GROQ: Which has better first-class support in Sanity?

18 repliesLast updated: Nov 29, 2025

Hey all, happy Friday 😄 Just looking into Sanity and wondering: would you consider GraphQL to have first-class support? Or will the experience generally be smoother using GROQ? It's not a dealbreak either way.
AI Update

Happy Friday! 😄

GraphQL definitely has solid support in Sanity, but GROQ is the first-class, native query language and will generally give you a smoother experience. Here's the breakdown:

Why GROQ is "first-class"

GraphQL limitations to know about

While Sanity does support GraphQL, there are some constraints:

When GraphQL makes sense

The verdict

GROQ is definitely the recommended path—Sanity's docs even suggest giving GROQ a try before reaching for GraphQL. That said, GraphQL support is production-ready and maintained, so it's not a dealbreaker if you prefer it. You'll just have a bit more friction with schema management and miss out on some of the more flexible querying patterns.

Since it's not a dealbreaker for you either way, I'd recommend starting with GROQ—it's more powerful for Sanity's use cases and has better DX integration. You can always add GraphQL later if you need it for specific integrations!

Show original thread
18 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions