This version of the documentation is archived and no longer supported. To
upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
hostname()Returns: The hostname of the system running mongosh.
hostname()| Returns: | The hostname of the system running mongosh. |
|---|