
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeHappy 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:
While Sanity does support GraphQL, there are some constraints:
sanity graphql deploy via CLI whenever your schema changesâit doesn't auto-updatepublished, raw, drafts, and release perspectives via query parameters, it's not as seamlessly integrated as with GROQGROQ 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!
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.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store