Docs Menu
Docs Home
/
MongoDB Manual

hostname()

hostname()
Returns:The hostname of the system running mongosh.

Next

What is MongoDB?