I currently have this call:
const q = coll.find(query, {
tailable: true,
awaitData: true,
oplogReplay: true,
noCursorTimeout: true,
numberOfRetries: Number.MAX_VALUE
});
return q.stream()
but my IDE warns me that this method on mongodb.Collection is deprecated:
Sure enough that's what the typings say. My question is - what is the long term solution here, what is the new way to make this same call?
find()
on a Collection type – Skyway