
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see the issue in your schema! Looking at the pastebin, on lines 11-22, you have a duplicate type definition that's causing the problem:
{
type: "string", // ← Line 12: This is wrong!
title: "Related success criterion",
name: "accessibilityRelatedSuccessCriterion",
type: "array", // ← Line 14: This gets overridden by line 12
of: [
{
type: "reference",
to: [{ type: "successCriterion" }],
},
],
},The fix: Remove the type: "string" on line 12. It should be:
{
title: "Related success criterion",
name: "accessibilityRelatedSuccessCriterion",
type: "array",
of: [
{
type: "reference",
to: [{ type: "successCriterion" }],
},
],
},Why you're getting "No results":
Steps to fix:
type: "string" linesanity dev)successCriterion documentsYou were absolutely right that references only work with document types (not objects), so that change was necessary. Once you fix the duplicate type and restart, everything should work as expected! 🙂
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store