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
Image upload fails after adding metadata options for dimensions and image4Mar 11, 2022
How to limit results per type in Sanity query with multiple document types?6Mar 10, 2022
How to validate that a document is referenced by at least one other document?26Mar 9, 2022
Why is my GROQ query not filtering out draft articles?20Mar 8, 2022
How to get alt text from Sanity Media Plugin using GROQ?13Mar 8, 2022
GROQ defined() filter not working despite non-empty field7Mar 8, 2022
Query multiple document types with conditional projections returning null12Mar 7, 2022
Cannot delete document due to reference error despite document not being used19Mar 7, 2022
Troubleshooting obtaining internalUrl with @portableText React in Sanity.io20Mar 7, 2022
How to retrieve project usage data via API?3Mar 7, 2022
NextJS getServerSideProps serialization error with undefined values from Sanity4Mar 5, 2022
Syncing external database tags to Sanity one-way with additional fields8Mar 2, 2022
GROQ query: Include author reference fields across multiple content types5Feb 28, 2022
Next.js Image component with Sanity.io: src error despite adding source7Feb 27, 2022
How to get image URL from asset._ref in Sanity?5Feb 25, 2022
Sanity query missing "grade" field from user schema32Feb 25, 2022
BrowserslistError: Unknown browser query `dead` with updated packages7Feb 24, 2022
How to Download File Assets by Filename Instead of Project ID9Feb 19, 2022