🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Answers from the community about GROQ

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

TopicCategoriesFeaturedRepliesLast Updated
How to Add Dynamic Navigation Menus to a Gatsby Page Template6Sep 3, 2021
Best practice for creating internal links with unique slugs in Sanity and Next.js9Sep 1, 2021
Best approach for querying by SKU in a product catalog using Sanity.io and GraphQL.6Aug 20, 2021
Querying for a specific item type within a document in Sanity.io17Aug 15, 2021
Issue with accessing reference types in serializer components15Aug 14, 2021
Help with GROQ query to select blog posts with specific category in Sanity19Aug 11, 2021
Learning GROQ and querying in Sanity.io can be confusing, but there are helpful resources available.4Aug 10, 2021
How to Remove GraphQL Fields Based on Other Fields in Gatsby3Aug 9, 2021
How to search for articles containing the word "demo" in any field of the document.17Aug 9, 2021
Is it Possible to Pass a Document Reference to Validation and Access the Dereferenced Fields?3Aug 6, 2021
How to Return Blog Posts by Slug Excluding the Slug that is being Passed to the Query3Aug 3, 2021
Is it Possible to Exclude Data from a GROQ Query / Request?6Jul 30, 2021
Issue with custom preview component not showing in search results view4Jul 29, 2021
How to Neatly Organize GROQ Queries3Jul 28, 2021
Discussion on validating uniqueness of hospital names in a document, with code snippets provided.17Jul 27, 2021
How to output a rectangle image using the image client library in Sanity.io10Jul 22, 2021
How to Write a GROQ Join Query for a Reference Type2Jul 21, 2021
Help needed with expanding nested references in a Sanity query4Jul 20, 2021