Answers from the community

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
Changes show in local but not production without redeployment24May 31, 2023
Sanity preview mode not returning draft posts in Next.js 13 app directory17May 31, 2023
Filter array of strings in Sanity query returning null25May 30, 2023
Error deploying GraphQL after schema updates with `sanity graphql deploy`28May 30, 2023
Error: Expected Sanity studio of version 3 or above when deploying GraphQL API3May 30, 2023
Using ternary operator or conditional logic in GROQ queries5May 30, 2023
Sorting with null values in search_priority field not working as expected3May 30, 2023
GROQ: Access root document title from custom object field7May 29, 2023
@sanity/client peer dependency conflict with next-sanity-image in Next.js3May 29, 2023
Sanity transaction.patch().set() is not a function error when updating posts2May 29, 2023
How to patch nested array object field with Sanity JS client?8May 29, 2023
Sanity image array mapping returns null - how to fix?4May 28, 2023
Why isn't my .env.local file working in Next.js with Sanity?6May 28, 2023
Does GROQ Vision have schema documentation and autocomplete like GraphQL?5May 27, 2023
How to override annotation styling in Portable Text Editor without losing functionality?11May 26, 2023
Top-level await error with sanity exec in migration script2May 26, 2023
How to query image URLs from array of images in Sanity?23May 26, 2023
Strategies for revalidating all pages on site-wide Sanity changes?4May 25, 2023