πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

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
Troubleshooting NextJS live preview feature with API route errors and missing response31Oct 4, 2021
Issue with retrieving data from an array in a document in Sanity.io12Oct 4, 2021
GraphQL Error: Cannot query field "userSummary"6Sep 29, 2021
Error in React/Sanity tutorial code, resolved with missing comma in query7Sep 29, 2021
Sorting out a `groq` query for resolved image URL and dimensions16Sep 27, 2021
How to fetch documents in GROQ that match a category but exclude the latest 8 documents.18Sep 27, 2021
Example of a groq query to return related posts based on tags for a blog post.11Sep 26, 2021
Embedding Sanity Studio on a subroute of a website and injecting project IDs at runtime16Sep 23, 2021
Implementing Next.js Sanity Image using a Blurred Placeholder with Sanity as a Loader12Sep 16, 2021
Connecting Sanity to 11ty: tips on serializers, portable text, and fetching data.8Sep 16, 2021
Using @sanity/block-content-to-react to display formatted text in Gatsby8Sep 13, 2021
Is it possible to get a subset of an array in GROQ using `_key` of the initial and final element?34Sep 12, 2021
Querying Mux video data in Sanity project with React frontend.10Sep 11, 2021
Reorder Array of Singleton References - Custom Validation Function7Sep 10, 2021
How to get referenced document attributes in a custom block serializer28Sep 9, 2021
Troubleshooting a schema issue with reference fields in Slack thread33Sep 8, 2021
Filtering products by sub-categories in Sanity.io schema6Sep 5, 2021
How to Add Dynamic Navigation Menus to a Gatsby Page Template6Sep 3, 2021