|
We're missing docs for the following output fields – we should add them to the isMaster reference:
Missing from v3.4:
- readOnly
- ok
- automationServiceDescriptor (
DOCS-8388)
3.6 adds a bunch as well – here's new sample output for 3.6:
replset:SECONDARY> db.isMaster()
|
{
|
"hosts" : [
|
"localhost:27017",
|
"localhost:27018",
|
"localhost:27019"
|
],
|
"setName" : "replset",
|
"setVersion" : 1,
|
"ismaster" : false,
|
"secondary" : true,
|
"me" : "localhost:27017",
|
"lastWrite" : {
|
"opTime" : {
|
"ts" : Timestamp(1511362459, 1),
|
"t" : NumberLong(-1)
|
},
|
"lastWriteDate" : ISODate("2017-11-22T14:54:19Z")
|
},
|
"maxBsonObjectSize" : 16777216,
|
"maxMessageSizeBytes" : 48000000,
|
"maxWriteBatchSize" : 100000,
|
"localTime" : ISODate("2017-11-22T14:54:25.130Z"),
|
"maxWireVersion" : 6,
|
"logicalSessionTimeoutMinutes" : 30,
|
"minWireVersion" : 0,
|
"readOnly" : false,
|
"compression" : [
|
"snappy"
|
],
|
"ok" : 1,
|
"operationTime" : Timestamp(1511362459, 1),
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1511362459, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
}
|
}
|
So we should document those new ones as well!
|