Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4609

Some elements will be removed when mapped value is falsy value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.12.0
    • None
    • 1
    • Not Needed
    • Not Needed

    Description

      Version 4.9.1

      When the first element of result of find().map().toArray() is falsy value (e.g. false, 0), then it will be removed ([0,0,1] --> [0,1]).

      Also, one null value from the start will be removed ([null, 1] --> [1]), and sequence of null from the start will result an empty array ([null, null, 1] --> []).

      This just happened on Node.js Driver. find().map() in MongoDB shell will return all results.

      Attachments

        Issue Links

          Activity

            People

              bailey.pearson@mongodb.com Bailey Pearson
              dicky1126277766238@gmail.com Cheng Dicky
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: