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
I found an issue when using the amazing conditional grab:
// If title is null it fails silently hereconstschema=q("*").filter().grab({_id: q.string(),},{"type == 'page'": {_type: q.literal("page"),title: q.string(),},})// If title is null the validation fails with an error messageconstschema=q("*").filter().grab({_id: q.string(),title: q.string()},)
Everything works as expected if title is a string as expected, but if it's null the validation fails silently and the parse only returns the _id field.
Would be great if an error message would show up here as well!
The text was updated successfully, but these errors were encountered:
Hi!
I found an issue when using the amazing conditional grab:
Everything works as expected if title is a string as expected, but if it's null the validation fails silently and the parse only returns the _id field.
Would be great if an error message would show up here as well!
The text was updated successfully, but these errors were encountered: