πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

Answers from the community about Queries

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Slack to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
Understanding the use of `^` and `@` operators in GROQ queries for accessing parent and current scopes.7May 29, 2023
Querying for documents by reference in a post and tag schema4May 22, 2023
Improving performance by filtering GROQ queries into separate arrays by _type.21May 18, 2023
How to structure content in Sanity.io & use GROQ queries for filtering & referencing related documents.21Feb 23, 2023
Creating a top-level schema for nested objects in GraphQL3Feb 19, 2023
Dealing with slow queries with multiple joins in data modeling4Feb 10, 2023
Syntax for Outputting an Array in GROQ6Feb 2, 2023
GROQ Query Error - Error: `String Literal Expected`2Jan 21, 2023
How to Order by a Nullable Datefield4Jan 17, 2023
How to use a Query to Access Data in Array4Jan 17, 2023
Troubleshooting a Query Error in Nuxt7Jan 16, 2023
How to Expand a Reference on the Object Level7Jan 11, 2023
Retrieving Documents not in an Array3Jan 7, 2023
Getting an Array of References without an Object Wrapper2Jan 6, 2023
Retrieving Items from an Array in the Order They are Displayed in the Studio2Jan 5, 2023
Using GROQ to Filter Out a List of Pages to Exclude From slug.current15Dec 1, 2022
How to Connect Algolia with Sanity and a Next.js Website17Nov 25, 2022
How to remove null values for undefined keys in GROQ arrays.22Nov 14, 2022