Answers from the community about GROQ

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
Fetch all image references in GROQ without specifying each field12May 5, 2021
Query Returning Expected Results in Vision but not in Custom Validation11Apr 30, 2021
Best Way to Fetch Global Data with GROQ and Next.js12Apr 30, 2021
usePreviewSubscription returns null data on last call in catch-all route22Apr 29, 2021
GROQ query error: Unknown query parameter "slug.current" in client code12Apr 28, 2021
How to add multiple images side-by-side (2x1 grid) in Portable Text?22Apr 26, 2021
Reference dereferencing fails after order() in array projection13Apr 26, 2021
How to make documents with custom prefix private like draft documents6Apr 21, 2021
Filter documents by ID in Sanity Desk Structure9Apr 20, 2021
Handling nested arrays when programmatically creating documents in Sanity.io17Apr 20, 2021
Portable Text Lists Rendering as P Tags Instead of UL/LI Elements24Apr 20, 2021
How to control entity titles in Sanity (e.g., "row 1", "row 2")?6Apr 19, 2021
CORS Error: Access-Control-Allow-Credentials Issue with @sanity/client4Apr 17, 2021
How to write a GROQ Query to Filter a Reference Field within Documents3Apr 16, 2021
GROQ conditional reference dereferencing not working in API 2021-03-25+5Apr 15, 2021
Issue with block content serialization and rendering in Sanity11Apr 15, 2021
Querying different fields for specific types within an array using GROQ in Slack thread18Apr 14, 2021
GROQ: Filter blog posts by referenced tag names7Apr 13, 2021