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 get title field from reference in Sanity preview?70Jul 1, 2021
GROQ: Sort list by lowercase/case-insensitive in query?4Jul 1, 2021
GROQ: Flatten nested array and extract specific property (usedTime) from tasks11Jun 29, 2021
GROQ: Filter posts by category when categories is an array field7Jun 29, 2021
Migrating Data and Export/Import to Remake Schemas9Jun 28, 2021
How to auto-generate slug from title field in Sanity productVariant schema?8Jun 27, 2021
Output referenced person image as background in Next.js from Sanity query5Jun 25, 2021
How to fix "Invalid key" warning for Sanity `slug` field in GraphQL query?3Jun 23, 2021
How to slugify or transform string values inside GROQ queries?7Jun 23, 2021
How to Filter Posts by Category Name in Next.js?4Jun 23, 2021
Caching Sanity client-side requests in Next.js without repeat calls2Jun 22, 2021
How to query posts by dynamically provided category reference in Sanity?16Jun 21, 2021
How to combine multiple GROQ queries in a single Sanity client call?4Jun 18, 2021
How to add unique keys to Sanity array items without ID field?17Jun 17, 2021
Fetch Error - Cannot Read Property 'Map' of Null4Jun 10, 2021
How to query posts by category in Sanity?8Jun 10, 2021
Can you bulk publish documents imported with sanity/client?29Jun 8, 2021
Using Sanity with GraphQL in Next.js: Tutorials and Best Practices9Jun 7, 2021