Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-586

Document "str" property of ObjectId() in JavaScript (shell and server)

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      The JavaScript object "ObjectId" has a string property named "str" that is used internally to hold the text of the hex string version of the object ID. Due to a breaking change in 2.2 (SERVER-2684), this property becomes important to users, because it is a way to achieve compatibility between versions 2.0 and 2.2.

      We should document its existance and usage so that users can use it more easily and with more confidence.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            tad Tad Marshall
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 17 weeks, 6 days ago