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
Since we are not really reading validation on "min" for arrays, doing slice(0) should always infer to be nullable.
Also with document queries, i.e:
`const pageQuery = q.star.filterByType("page").filter("slug.current == $slug").slice(0)`
groq will return null if the document doesn't exist. I feel like this should be the default.
We can add .nullable() but I think it is more correct to make it default nullable in this scenario and perhaps add a .nonNullable() if necessary.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Code of Conduct
Feature Request
The text was updated successfully, but these errors were encountered: