Collection.findOne result does not comply with documentation

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Collection.findOne is documented as returning an insertWriteOpResult object
      http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html#~insertWriteOpResult

      This object is expected to have an array property insertedIds with a single element.
      The result object actually returned contains an insertedId property but no insertedIds property

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            TiMoch
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: