Closed stipsan closed 5 months ago
Hmm, ideally we should not expose the sanity assist type in the graph QL api: the type is intentionally defined as 'object' and uses 'sanity.' prefix to not show up in structure.
I guess we could apply this change regardless, but I was under the impression that sanity.
prefixed types where omitted from most surfaces.
The graphql deploy command still requires objects to be declared on the top level to be able to parse the schema. Even if they ultimately don't get deployed. It's only the AI Context document type that ends up deployed, which makes sense as it also shows up in structureTool
. Everything else is hidden just like in Structure
Without this PR you get this error if you try to run
sanity graphql deploy
:This PR fixes it, testable using
npm i @sanity/assist@canary --save-exact
, and theAssistInstructionContext
types are generated and available.