Answers from the community about Queries

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
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
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
Excluding current slug from blog post query results3Aug 3, 2021
Exclude fields in GROQ query without fetching them first6Jul 30, 2021
Cleaner alternative to nested select functions in GROQ queries3Jul 28, 2021
Validating unique hospital names in Sanity documents not working17Jul 27, 2021
How to output square image without cropping using Sanity image client library?10Jul 22, 2021