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
Cannot delete translation document due to self-reference from base document17Sep 22, 2022
Find documents referencing a specific schema as a block10Sep 20, 2022
Translated documents deleted after translation maintenance - how to restore?14Sep 19, 2022
Adding reference in block array - how to expand with GROQ?10Sep 15, 2022
Dataset import not reflecting in Sanity Studio after CLI deployment15Sep 14, 2022
How to sync user documents on studio load with custom desk structure?15Sep 13, 2022
How to filter documents by view count field in Sanity?2Sep 8, 2022
How to pass non-slug string params from getStaticPaths to getStaticProps in Next.js?63Sep 8, 2022
Category name not showing from reference field in Sanity schema18Sep 8, 2022
How to retrieve Sanity data for meta tags across all Next.js pages?15Sep 8, 2022
Sanity webhook sub-queries workaround for NextJS revalidation3Sep 5, 2022
Querying single image field with asset reference in GROQ51Sep 1, 2022
GROQ: Filter product attributes by category's attribute references7Aug 30, 2022
Sanity preview "Not authenticated" error with Next.js4Aug 27, 2022
Custom URL validator timing out when checking slugs against published documents18Aug 21, 2022
How to fetch multiple Sanity queries at once with the client?25Aug 18, 2022
How to import a Jekyll blog to Sanity?34Aug 18, 2022
Filtering documents by referenced field value in GROQ5Aug 17, 2022