OPTIONS

sh._checkMongos()

sh._checkMongos()
Returns:nothing
Throws:“not connected to a mongos”

The sh._checkMongos() method throws an error message if the mongo shell is not connected to a mongos instance. Otherwise it exits (no return document or return code).

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.