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

documentation for valueOf() and toString()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      valueOf() needs documentation. Need examples of the difference between valueOf() and toString(), especially for ObjectId type. The behavior of toString() changed in 2.2. The old behavior was to convert the ObjectId into a bare string (thus losing its type information); the new behavior is to produce text that indicates that it is an ObjectId with a hex value.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

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