The Aleks
The Aleks16mo ago

Type error when index is on an optional field

I hit something similar today: I get a type error if the index is on a field that's optional. It still works, but the typescript compiler complains in the q.eq("myOptionalField", value)
3 Replies
ballingt
ballingt16mo ago
@The Aleks what version of Convex are you on? I can't reproduce this on 1.5 this may be a bug we fixed.
The Aleks
The AleksOP16mo ago
I wonder if it's because it's a nested prop
No description
The Aleks
The AleksOP16mo ago
No description

Did you find this page helpful?