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 query field on type error when adding new fields to object4Dec 6, 2021
Sanity client.fetch() returns empty array despite documents existing in dataset5Dec 2, 2021
Get slug from most recent blog post ordered by date27Nov 26, 2021
Button to link to most recent blog post (index 0)24Nov 23, 2021
CORS error loading SVG from Sanity CDN inline with external-svg-loader13Nov 23, 2021
Unique slugs for nested projects within clients in Sanity schema19Nov 22, 2021
How to use the Sanity CDN to Transform SVG Images to Bitmap/PNG Images5Nov 12, 2021
How to sort nested categories alphabetically in GROQ query?3Nov 10, 2021
Frontend vs Backend Proxying for Sanity API Requests3Nov 9, 2021
How to display image caption and attribution on frontend in Sanity?12Nov 9, 2021
How to get slug from a reference in Sanity?12Nov 7, 2021
Tiered content access and user submissions with Sanity CMS?8Nov 2, 2021
How to set default boolean field value on existing documents via migration script?11Nov 2, 2021
Fetch document field value in Structure Builder's S.view.options2Nov 1, 2021
Get image metadata from image component inside block type with GraphQL11Oct 29, 2021
How to display simple-star-rating plugin stars in Gatsby site?12Oct 23, 2021
GROQ query: String interpolation vs parameterized queries in Sanity client4Oct 21, 2021
GROQ query for nested :items attributes in path39Oct 17, 2021