Category "groq"

How can I conditionally render tabs depending on the value of a field of a GROQ query?

I have a GROQ query where the result is an array of documents, of which one of the fields, "fieldName", can contain "a", "b" or "c". If the array contains any w

How to filter Sanity posts by category title?

Here what I've done in vision *[_type == "post" && categories == SOCIAL ]{ _id, title } It returned No documents found in dataset production that mat