-
Type:
Bug
-
Resolution: Done
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: 2.2.2
-
Component/s: MongoDB 3.2
-
Environment:Node 6.3
Hi,
i am having trouble using sorting the cursor and then using it as a RedableStream. Here is a sample code:
sample.js
const stream = collection .find( filter ) .project( FIELDS ) // .sort( { date: 1 } ) // If enabled the stream ends without passing any data to the transformers .pipe( transformer1 ) .pipe( transformer2 ) .pipe( writer )