MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / is_mongos

Function is_mongos

test/utils.py:86–88  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

84
85
86def is_mongos(client):
87 res = client.admin.command(HelloCompat.LEGACY_CMD)
88 return res.get("msg", "") == "isdbgrid"
89
90
91def ensure_all_connected(client: MongoClient) -> None:

Callers 1

test_exhaustMethod · 0.90

Calls 2

commandMethod · 0.45
getMethod · 0.45

Tested by 1

test_exhaustMethod · 0.72