@@ -128,6 +128,34 @@ roles:
128128 Clients may use :data:`~isMaster.maxWireVersion` to help negotiate
129129 compatibility with MongoDB.
130130
131+ .. data:: isMaster.readOnly
132+
133+ .. versionadded:: 3.4
134+
135+ A boolean value that, when ``true``, indicates that the
136+ :program:`mongod` or :program:`mongos` is running in read-only mode.
137+
138+ .. data:: isMaster.compression
139+
140+ .. versionadded:: 3.4
141+
142+ .. versionchanged:: 3.6 In MongoDB 3.6, :data:`~isMaster.compression`
143+ appears by default. Previously, :data:`~isMaster.compression` only
144+ appeared if the network connection was compressed.
145+
146+ An array listing the compression algorithms used to compress the
147+ current connection's network communication between the
148+ :program:`mongod` or :program:`mongos` and other members of the
149+ deployment or the :program:`mongo` shell.
150+
151+ For a :program:`mongod` or :program:`mongos` using the ``snappy``
152+ compressor , the :data:`~isMaster.compression` field would resemble
153+ the following:
154+
155+ .. code-block:: sh
156+
157+ "compression": [ "snappy" ]
158+
131159Sharded Instances
132160~~~~~~~~~~~~~~~~~
133161
@@ -227,7 +255,7 @@ of a replica set:
227255
228256.. data:: isMaster.electionId
229257
230- .. versionadded:: 3.0.0
258+ .. versionadded:: 3.0
231259
232260 A unique identifier for each election. Included only in the output
233261 of :dbcommand:`isMaster` for the :term:`primary`. Used by clients
@@ -259,3 +287,7 @@ of a replica set:
259287 A :bsontype:`date <data_date>` object containing the
260288 time of the last write operation readable by
261289 :readconcern:`majority <"majority">` reads.
290+
291+ For details on the ``ok`` status field, the ``operationTime`` field,
292+ and the ``$clusterTime`` field, see `Command Response
293+ <command-response>`.
0 commit comments