Answers from the community about GROQ

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
How to check if a field value exists in an array using GROQ?20Jun 7, 2022
Display Sanity images with Next.js Image component using asset reference16Jun 6, 2022
How to query Sanity data in NextJS using GraphQL instead of GROQ?17Jun 4, 2022
GROQ query showing "[object Object]" instead of string - expected ']' error7Jun 3, 2022
Converting string array tags to document references in Sanity schema28Jun 2, 2022
How to use patch().set() to update a slug field in Sanity?5May 30, 2022
How to query images from portable text body in Sanity slug page?26May 27, 2022
How to Reference an Enclosing Document of a Reference in GROQ8May 26, 2022
Custom slug input component for dynamic URL description without schema changes5May 25, 2022
Sanity CMS: Untitled Question5May 25, 2022
How to display Shopify image URL and sync prices in Next.js with Sanity?13May 24, 2022
Filter out NULL values in GROQ query results4May 24, 2022
How to get SVGs from Sanity like images?13May 20, 2022
Sanity Question Untitled19May 20, 2022
Troubleshooting Shopify integration with Sanity.io33May 20, 2022
How to fix Shopify sync error after removing store and token from Sanity?22May 20, 2022
Implementing Singleton Document Internationalization in Sanity Structure9May 19, 2022
How to render a downloadable File type in Sanity18May 19, 2022