Skip to content

Stream pagination cursors don't support undefined #499

Open
@ldanilek

Description

@ldanilek

Cursors created by stream().query().paginate() call convexToJson on the index keys.
Index keys are typed as Value[] but actually they're (Value | undefined)[] -- it can be undefined if an indexed field is missing from some document. Handle this in types and in the cursor serde.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions