- Reference >
- Operators >
- Query Modifiers >
- $showDiskLoc
$showDiskLoc¶
-
$showDiskLoc¶ Note
- Deprecated in the
mongoShell since v3.2 - Starting in v3.2, the
$showDiskLocoperator is deprecated in themongoshell. In themongoshell, usecursor.showRecordId()instead.
$showDiskLocoption adds a field$diskLocto the returned documents. The value of the added$diskLocfield is a document that contains the disk location information:The
mongoshell provides thecursor.showDiskLoc()method for$showDiskLoc:You can also specify the
$showDiskLocoption in either of the following forms:- Deprecated in the