Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-865

ObjectId() does not accept integer argument

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.15.5
    • Affects Version/s: None
    • Component/s: Shell API
    • Iteration Firenze
    • Needed
    • Hide

      The mongosh ObjectId global now matches the BSON global in that it can also accept an integer argument (unix timestamp in seconds).

      Show
      The mongosh ObjectId global now matches the BSON global in that it can also accept an integer argument (unix timestamp in seconds).

      The BSON ObjectId class takes an integer unix timestamp argument, we should do so as well.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: