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

documentation for valueOf() and toString()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      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.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved:
              11 years, 29 weeks, 1 day ago