robbiblubber.org

help | login | search:  
>>

read  source  history 


= hideIndex() =
----
[[MongoDB Driver Function Reference]]


Hides an index from the query planner.
More information can be found in the corresponding entry of the [[https://docs.mongodb.com/manual/reference/method/db.collection.hideIndex/index.html|MongoDB Manual]].


[[[@cG

<collection>.hideIndex(<name>)

]]]


**Arguments**

[[[@w

|@t0@r0@c0 <collection> | | The target collection. |
| <name> | | Index name |

]]]



**Example**

[[[@cw

db.employees.hideIndex("salary_ix");

]]]

Hides the //salary_ix// index.











----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]