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 Syntax Error: Conditional Field Selection for Multiple Document Types13Aug 16, 2022
Configure Sanity CORS for Vercel deployment without preview URL4Aug 12, 2022
How to add links to images in Portable Text with annotations?14Aug 11, 2022
How to filter Sanity documents based on checkbox selections in NextJS?26Aug 10, 2022
Patching Insert an Array Field in a Query2Aug 9, 2022
Sanity CMS Question36Aug 9, 2022
How to create nested posts with ordered sub-posts in Sanity schema?11Aug 8, 2022
How to pass URL parameter to Sanity GROQ query in Next.js getServerSideProps?5Aug 6, 2022
Sanity query ordering works in Vision but not in JavaScript18Aug 5, 2022
Retrieve file source/URL in GROQ query for SVG uploads5Aug 5, 2022
Filtering options in an array dropdown for selecting modules by matching course in Sanity.io21Aug 5, 2022
Cannot delete locked image - document type no longer exists in schema9Aug 2, 2022
Get prev/next document in ordered GROQ query11Jul 31, 2022
How to create a Sanity dashboard widget with GROQ query and display data?11Jul 29, 2022
GROQ: Get draft version of referenced document if exists, else published4Jul 28, 2022
How to import a link from database to Sanity project?15Jul 28, 2022
How to join array of strings into single comma-separated string in GROQ?8Jul 27, 2022
How to use Sanity image hotspot cropping in Next.js?20Jul 27, 2022