- Reference >
- Operators >
- Query Modifiers >
- $showDiskLoc
$showDiskLoc¶
-
$showDiskLoc
¶ Deprecated since v3.2
Starting in v3.2, the
$showDiskLoc
operator is deprecated in themongo
shell. In themongo
shell, usecursor.showRecordId()
instead.$showDiskLoc
option adds a field$diskLoc
to the returned documents. The value of the added$diskLoc
field is a document that contains the disk location information:The
mongo
shell provides thecursor.showDiskLoc()
method for$showDiskLoc
:You can also specify the
$showDiskLoc
option in either of the following forms: