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
Filter GROQ query by array of referenced category names40Oct 18, 2021
GROQ query for nested :items attributes in path39Oct 17, 2021
Portable Text link reference not resolving in GROQ query with markDefs12Oct 15, 2021
How to expand/resolve reference in Portable Text serializer mark?9Oct 15, 2021
Sanity schema field not appearing in Gatsby frontend query11Oct 14, 2021
Switching between languages in Next.js with Sanity multilingual content5Oct 13, 2021
How to access image metadata in Sanity custom input component?5Oct 12, 2021
How to build hierarchical href paths from parent-child references in GROQ?33Oct 12, 2021
How to nest lqip inside mainImage object in Sanity GROQ query?10Oct 6, 2021
How to use references() function in Sanity HTTP API GET requests?4Oct 5, 2021
Best approach for retrieving translations in GROQ queries from frontend?9Oct 4, 2021
NextJS Preview Feature with Sanity Setup Help31Oct 4, 2021
Urgent Sanity Assistance Needed12Oct 4, 2021
Querying nested array objects with block content in Sanity GraphQL6Sep 29, 2021
400 Error on Sanity Query Fetching Posts in React Portfolio7Sep 29, 2021
GROQ query to get resolved image URL with width and height in latest API16Sep 27, 2021
GROQ: Fetch documents by category excluding latest 8 documents18Sep 27, 2021
GROQ query to find related posts by shared tags11Sep 26, 2021