Developer Data Platform
Enterprise software and support
Free software used by millions
Build faster
By Industry
By Use Case
Customer Stories
Learn how businesses are taking advantage of MongoDB
White Papers & Presentations
Webinars, white papers, data sheet and more
Community
Education
About
Services
Partnerships
mongosh
mongo
Docs Home → MongoDB Manual
ping
The ping command is a no-op used to test whether a server is responding to commands. This command will return immediately even if the server is write-locked:
{ ping: 1 }
The value (e.g. 1 above) does not impact the behavior of the command.
1