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 pass URL parameter to Sanity GROQ query in Next.js getServerSideProps?5Aug 6, 2022
Sanity query ordering works in Vision but not in JavaScript18Aug 5, 2022
Retrieve file source/URL in GROQ query for SVG uploads5Aug 5, 2022
Filtering options in an array dropdown for selecting modules by matching course in Sanity.io21Aug 5, 2022
Sanity app and data model architecture documentation6Aug 4, 2022
Cannot delete locked image - document type no longer exists in schema9Aug 2, 2022
Get prev/next document in ordered GROQ query11Jul 31, 2022
How to create a Sanity dashboard widget with GROQ query and display data?11Jul 29, 2022
GROQ: Get draft version of referenced document if exists, else published4Jul 28, 2022
How to import a link from database to Sanity project?15Jul 28, 2022
How to join array of strings into single comma-separated string in GROQ?8Jul 27, 2022
How to use Sanity image hotspot cropping in Next.js?20Jul 27, 2022
Subscribe to a Document and Re-Render with React When Updated4Jul 26, 2022
Auto-toggle boolean field across documents in Sanity schema8Jul 25, 2022
Query works in Vision but returns empty array in queries.js file3Jul 23, 2022
Gatsby GraphQL returns null for Sanity reference array field (skills)6Jul 22, 2022
GROQ: Query nested object text content and filter by matching word7Jul 22, 2022
Netlify IP hitting Sanity API rate limits despite team plan allowance - workarounds?16Jul 20, 2022