Optimizing Content Payloads with GROQ Projections
Stop over-fetching data from Sanity. Learn to use GROQ projections to transform content on the server, reducing payload size and improving app performance.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop over-fetching data from Sanity. Learn to use GROQ projections to transform content on the server, reducing payload size and improving app performance.
GROQ lets you filter, join, and project Sanity content in a single request. This guide covers the essential query pipeline, reference expansion, Portable Text handling, parameterization, caching, and the common mistakes that cause timeouts or oversized responses.
Stop fighting HTML strings in your CMS. Learn how Sanity's Portable Text uses JSON to decouple content structure from presentation for multi-platform delivery.
Portable Text lets you store rich text in a structured, platform‑agnostic way. This guide walks through schema setup, GROQ querying, and rendering with a React serializer, plus trade‑offs and a practical checklist to get you started.
Portable Text lets you store rich‑text as JSON in Sanity, query it with GROQ, and render it in React using custom serializers. This guide shows the full workflow, a real example, and the size‑versus‑flexibility trade‑off.
Stop storing rich text as opaque HTML. Learn how Sanity's Portable Text uses structured JSON and custom serializers to ensure content portability and editorial governance.
An architecture note on Sanity Portable Text, covering minimal schema design, trust boundaries, operational checks, and strategies for cross-platform content portability.
Learn how to use GROQ projections and dereferencing in Sanity to eliminate over-fetching and deliver lean, UI-ready JSON to your frontend.
Learn how Sanity Portable Text stores rich text as JSON, enabling platform‑agnostic querying and rendering with GROQ and React.