Deprecate shell helper db.collection.getIndexSpecs()

XMLWordPrintableJSON

    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There are 3 shell helpers.

      > db.test.getIndexSpecs
      function (){
          return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
      }
      > db.test.getIndexes
      function (){
          return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
      }
      > db.test.getIndices
      function (){
          return this.getDB().getCollection( "system.indexes" ).find( { ns : this.getFullName() } ).toArray();
      }
      

      The most likely least used is getIndexSpecs()

      This is useful when autocompleting this functions

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Gianfranco Palumbo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: