Stream not working after sort

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 2.2.2
    • Component/s: MongoDB 3.2
    • Environment:
      Node 6.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 )
      

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            Riccardo Volonterio
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: