Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22654

Add Global mongoTypeName() Function

    • Server Development Platform
    • Fully Compatible

      Sometimes we need to determine the class of a javascript object. Currently, class membership testing can be done by prototype object comparison, but there is nothing preventing a user from overriding the __proto__ field of an object.

      It would be helpful to determine the C++ className of an object in a way that cannot be overridden by a user.

      We propose adding a new `mongoTypeName()` function that would return the className for an object created from a MongoDB class (e.g. NumberInt, OID, etc).

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            rahul.dhodapkar Rahul Dhodapkar
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: