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

ObjectID format changed in 2.2.0 driver

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.2.1
    • Affects Version/s: 2.2.0
    • Component/s: BSON
    • Labels:
      None

      After updating to the 2.2.0 Node.js driver, ObjectIDs are being returned with the underlying BSON big endian byte order for the unixtime rather than the expected little endian:

      oid = require('mongodb').ObjectID
      console.log(oid())
      

      // 2.2.0 driver

      3720835756801c9b60a29d84
      

      // 2.1.21 driver (and expected format)

      57832378f392393d68cf8d06
      

      See also: http://stackoverflow.com/questions/38295305/mongojs-objectid-produces-wrong-timestamp

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: