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

Pretty print methods

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: CLI Module
    • None
    • 3

      Right now if you type a function, you get the raw output:
      > db.coll.mapReduce
      [Function] {
      returnsPromise: true,
      serverVersions: [ '0.0.0', '4.4.0' ],
      topologies: [ 0, 2, 1 ],
      returnType: { type: 'unknown', attributes: {} },
      platforms: [ 0, 1, 2 ],
      help: [Function] Help
      }
      Maybe we can print something nicer? we could print the help command, or we could at least convert the enums like topologies/platforms to their proper names instead of [1,2,3].

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: