Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1034

Properly display objects created with a property object

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed

      > var x = Object.create(null, { x: { value: 34 }})
      > x
      [object]

      Instead of just displaying '[object]', we can display the property object contents by using Object.getOwnPropertyNames( x ).

            Assignee:
            backlog-shell-v2 [DO NOT USE] Backlog - Shell Team
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: