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