fauna / fauna-js

Javascript driver for Fauna v10 (current)
https://fauna.com
Other
37 stars 7 forks source link

ENG-6606: Introduce event cursor support #285

Closed erickpintor closed 3 months ago

erickpintor commented 3 months ago

Description

Provide support for the new per-event stream cursor.

Motivation and context

There's an edge case where resuming a stream from a txn time with lots of documents written could result in event loss. This approach fixes that edge case.

How was the change tested?

Unit tests included.

Screenshots (if appropriate):

NA

Change types

Checklist:


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.