taminov
taminov

Reputation: 591

Can I generate a custom resumeAfter token (based on time) for mongodb change streams?

In change streams I can provide a resumeAfter token which I can get from a previous change by accessing change._id.

Can I generate my own a token that is based on timestamp?

Upvotes: 1

Views: 260

Answers (1)

taminov
taminov

Reputation: 591

I can use startAtOperationTime timestamp instead of resumeAfter. In mongo 4.

Upvotes: 1

Related Questions