convex-test fails for nested optional properties used in index
In this example, you see that
add_info is an optional property (by way of being excluded in one of the types within a discriminated union type).1. There is no type error
2. The test fails in convex-test
3. The test passes against the live convex server
I've also create a full reproduction with different scenarios (refer to commit history) here.
- https://github.com/conradkoh/convex-test-index-bug-repo/commits/master/
Thanks in advance.
Schema
Query Code
Test
Error
