Not able to read data from cursor_stream.read()

Hi,
I have a simple piece of code that uses the .stream() method of a query result cursor and tries to iterate over it. But it seems to hang on the .read() method. The other alternative of using stream.on(“data”, someFunc) seems to work. However ideally I would like to use the .read() approach as it works well when plugging into other Streams.

     const stream = collection.find().limit(20).stream()

     const doc = await stream.read() // <-- Code seems to hang here
     if (doc == null) {
        break
     }
     console.log(doc._id)
      
     // This works.
     // stream.on('data', function(data: any) {
     //     console.log(data._id)
     // })

Even in the NodeJS driver docs the .read() part is not explicitly mentioned - https://www.mongodb.com/docs/drivers/node/current/fundamentals/crud/read-operations/cursor/#stream-api But I’m assuming it should be compatible with that API?