You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GROQ query uses multiple "^" parent operators chained together in a filter componen, the TypeGen-generated type of the query result ends up as Array<never>.
To Reproduce
Create a project (opting in to TypeScript) or edit an existing one, and make a sanity.config.ts like the following:
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
When a GROQ query uses multiple "
^
" parent operators chained together in a filter componen, the TypeGen-generated type of the query result ends up asArray<never>
.To Reproduce
src/queries.ts
file with these contents:npx sanity schema extract && npx sanity typegen generate && cat sanity.types.ts
, and observe theQueryWithGrandparentResult
typeExpected behavior
Actual behavior
Which versions of Sanity are you using?
What operating system are you using?
GNU/Linux (Ubuntu 22.04.4 LTS
Which versions of Node.js / npm are you running?
npm -v && node -v
:10.2.4
v20.11.1
The text was updated successfully, but these errors were encountered: