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
Excluding current slug from blog post query results3Aug 3, 2021
Exclude fields in GROQ query without fetching them first6Jul 30, 2021
How to show custom preview as default view when opening document from search results?4Jul 29, 2021
Cleaner alternative to nested select functions in GROQ queries3Jul 28, 2021
Validating unique hospital names in Sanity documents not working17Jul 27, 2021
How to output square image without cropping using Sanity image client library?10Jul 22, 2021
How to dereference array of testimonial references in GROQ query?2Jul 21, 2021
How to expand nested references while keeping sibling items in array?4Jul 20, 2021
"Troubleshooting adding Sanity to a Gatsby project and resolving deployment and configuration issues."13Jul 19, 2021
Filter Sanity products by field values (checkbox/array) not documents5Jul 18, 2021
Category page 404 error when copying post slug logic in Sanity + Next.js4Jul 18, 2021
How to display custom titles for array objects in Sanity?6Jul 16, 2021
How to Implement Preview Content with Next-Sanity2Jul 15, 2021
Fetch multiple Sanity content types in Next.js getStaticProps2Jul 13, 2021
Schema changes not reflecting in output despite showing in Studio9Jul 7, 2021
How to auto-publish documents created via Sanity client in Node.js?11Jul 6, 2021
Troubleshooting Next.js and Sanity integration, with issues outputting data13Jul 2, 2021
Why does array.map() return undefined when array exists in console.log?12Jul 1, 2021