Add Global mongoTypeName() Function

XMLWordPrintableJSON

    • Server Development Platform
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            Rahul Dhodapkar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: