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

Support database and collection helper methods

    • Type: Icon: Story Story
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: Embedded Shell, Shell API
    • None
    • Needed
    • Hide

      Two new methods added, getName and getMongo

      Show
      Two new methods added, getName and getMongo

      • Database.getName
      • Database.getSisterDB , see https://jira.mongodb.org/browse/SERVER-46231
      • Collection.getMongo
      • Collection.getCollection not mentioned in docs, behavior in the old shell is weird: db.abc.getCollection('def') --> Collection("abc.def")

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: