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
Sanity data returns empty array in Next.js getStaticProps16Apr 27, 2022
How to query author bio raw text field in Sanity GraphQL?5Apr 22, 2022
How to show createdAt field in Sanity Studio20Apr 13, 2022
GROQ query with boolean field works in Vision but returns empty in app13Apr 7, 2022
How to rename Sanity schemas without losing content in Studio?7Apr 7, 2022
How to send email notifications on new Sanity documents using webhooks?43Apr 5, 2022
How to Calculate the Reading Time of Body Content with React18Apr 5, 2022
Fetching multiple document types with conditional fields in Sanity GROQ query8Apr 2, 2022
How to unset an array element using patch query in Sanity?9Apr 2, 2022
Sanity API versions not returning key except v136Mar 31, 2022
Using Sanity as middleware to edit database query results6Mar 29, 2022
Batch multiple queries into a single API call in Sanity62Mar 24, 2022
Query Sanity documents by matching IDs from user's array8Mar 23, 2022
Reduce Sanity API requests and bandwidth usage for high-traffic Next.js blog9Mar 23, 2022
Filter null/empty entries in GROQ array subquery for page builder schema6Mar 19, 2022
How to preserve newlines from Sanity text fields in HTML/React?18Mar 19, 2022
Help with GROQ query and filtering array in Slack thread18Mar 16, 2022
Accessing nested array objects from GROQ query with conditional fallback25Mar 15, 2022