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
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
How to set custom document ID for Sanity homepage in Next.js catch-all route?9Feb 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
Why does PortableText need dataset and projectId props if sanity.json exists?10Feb 18, 2022
Issues with `i18n_lang` field in Sanity document internationalization plugin15Feb 15, 2022
Migrating github.gist serializer from block-content-to-react to portabletext/react10Feb 10, 2022
Flattening array of arrays in Groq query8Feb 9, 2022