I am trying to get a document to refrence other documents of the same type. But I only get "No results" when trying to search for instances of that document type. The document type was an object up until an hour ago ish, I changed it to a document type because it seems like refrences only works for documents, Then I crated some new instances of that document but cannot find them either.
I would expect the documents that were formerly objects to be a bit tougher to get at, but you mentioned new instances that you can’t find either. What do you get when you query:
*[_type == "successCriterion"]
Are you querying in Vision or some other tool?
Mar 15, 2021, 2:12 PM
I would expect the documents that were formerly objects
I didn’t word that well. They’re still objects and won’t automatically update to documents just because the schema is changed.
Mar 15, 2021, 2:15 PM
Creating new documents from the root of sanity worked, but just adding them via into an array object in sanity did not work. But that is actually fine, this is how I wanted it to work any way. I was just prototyping