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
How to extract URL from referenced schema in Sanity?5Jul 20, 2022
Sanity CDN image links from WYSIWYG not working27Jul 19, 2022
How to Implement Site Search with Next.js9Jul 16, 2022
GROQ: Query products through shopifyProduct variants to find references10Jul 15, 2022
Sanity client fetch returns undefined on Netlify Edge functions24Jul 12, 2022
Query last 10 elements from array in Sanity GROQ11Jul 11, 2022
apiVersion parameter breaking existing Sanity queries13Jul 7, 2022
Does imageUrlBuilder count towards Sanity API quotas?11Jul 6, 2022
Getting undefined in getServerSideProps with Sanity query in Next.js18Jul 6, 2022
.map not a function error in getStaticPaths with dynamic routes7Jul 5, 2022
GROQ estimatedReadingTime query fails in Next.js API route but works in getStaticProps3Jul 4, 2022
GROQ v1 auto-dereferences arrays, v2+ returns refs - how to dereference?8Jun 30, 2022
How to access the slug of a reference to a route in a CTA object within a hero element3Jun 29, 2022
How to pass dynamic category ID to GROQ query in getStaticProps with slug param10Jun 28, 2022
Next.js fallback:true causes undefined post during prerender10Jun 28, 2022
Allow image OR string field type in Sanity schema6Jun 27, 2022
Filter Sanity documents by referenced array elements condition13Jun 25, 2022
Discussion about organizing products in Sanity.io desk structure24Jun 24, 2022