- Reference >
- Operators >
- Query Modifiers >
- $showDiskLoc
$showDiskLoc¶
-
$showDiskLoc
¶ $showDiskLoc
option adds a field$diskLoc
to the returned documents. The$diskLoc
field contains the disk location information.The
mongo
shell provides thecursor.showDiskLoc()
method:You can also specify the option in either of the following forms: