[SERVER-11267] Deprecate shell helper db.collection.getIndexSpecs() Created: 18/Oct/13  Updated: 26/Oct/21  Resolved: 26/Oct/21

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Task Priority: Trivial - P5
Reporter: Gianfranco Palumbo Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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


Generated at Thu Feb 08 03:25:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.