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

ObjectId() does not accept integer argument

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15.5
    • Component/s: Shell API
    • Labels:
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      The mongosh ObjectId global now matches the BSON global in that it can also accept an integer argument (unix timestamp in seconds).
    • Sprint:
      Iteration Firenze

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: