Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11267

Deprecate shell helper db.collection.getIndexSpecs()

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            gianfranco Gianfranco Palumbo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: