mongodb change stream resume from timestamp

115
June 13, 2019, at 7:10 PM

In mongodb docs https://docs.mongodb.com/manual/changeStreams/ there is a quote:

The oplog must have enough history to locate the operation associated with the token or the timestamp, if the timestamp is in the past.

So it seems that it is possible to resume and get all the events that where added to oplog from a certain time.

There is a param, seems that it has to accomplish what I need

watch([],{startAtOperationTime: ...})

https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#startatoperationtime

Param is Timestamp, I don't get how to translate a particular date to correct timestamp.

Rent Charter Buses Company
READ ALSO
yarn start giving invalid character microsoft js compilator error

yarn start giving invalid character microsoft js compilator error

im trying to run nodejs app with STRAPIURL STRAPI_URL=http://54

117
Trying to connect node.js app to AWS IoT, but get error “unable to get local issuer certificate”

Trying to connect node.js app to AWS IoT, but get error “unable to get local issuer certificate”

I'm trying to connect to AWS IoT from a nodejs application using the aws-iot-device-sdk

169
How to deploy one app from a large monorepo with dependencies to packages in the same repo to google app engine?

How to deploy one app from a large monorepo with dependencies to packages in the same repo to google app engine?

I have a large nodejs monorepo with several applications and packages and inter dependencies

134
Javascript how do I check multiple await async mssql DB request results for errors?

Javascript how do I check multiple await async mssql DB request results for errors?

I have multiple Node-mssql module requests for mssql-database inside an async function in Javascript

101