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
Embedding Sanity Studio on a subroute in a React application16Sep 23, 2021
Implementing Next.js Sanity Image using a Blurred Placeholder with Sanity as a Loader12Sep 16, 2021
Connecting Sanity CMS to 11ty Frontend Tutorial or Reference8Sep 16, 2021
Getting array subset in GROQ using start and end _key values34Sep 12, 2021
GROQ query for Mux video asset returning only _ref instead of full data10Sep 11, 2021
How to get referenced document data in custom block serializer?28Sep 9, 2021
Reference search fails: "Attribute name cannot be an empty string" error33Sep 8, 2021
Creating nested product folders filtered by category in Sanity Desk Structure6Sep 5, 2021
How to Add Dynamic Navigation Menus to a Gatsby Page Template6Sep 3, 2021
How to construct proper URLs from Sanity references with different content types?9Sep 1, 2021
How to query reverse relationships in Sanity (reference from child to parent)?4Aug 29, 2021
Should I use SKU field in documents or create separate SKU document type?6Aug 20, 2021
How to query all items of a specific _type in Sanity17Aug 15, 2021
Reference fields not resolving in Portable Text serializer components15Aug 14, 2021
GROQ query to filter blog posts by category slug19Aug 11, 2021
Remove GraphQL field based on another field in Gatsby page query3Aug 9, 2021
How to search for a word across all fields in Sanity documents?17Aug 9, 2021
Can I access dereferenced fields from a doc reference in schema validation?3Aug 6, 2021