compression property

List<String>? compression
getter/setter pair

An array listing the compression algorithms used or available for use (i.e. common to both the client and the mongod or mongos instance) to compress the communication between the client and the mongod or mongos instance. The field is only available if compression is used. For example: If the mongod is enabled to use both the snappy,zlib compressors and a client has specified zlib, the compression field would contain: "compression": "zlib" If the mongod is enabled to use both the snappy,zlib compressors and a client has specified zlib,snappy, the compression field would contain: "compression": "zlib", "snappy" If the mongod is enabled to use the snappy compressor and a client has specified zlib,snappy, the compression field would contain : "compression": "snappy" If the mongod is enabled to use the snappy compressor and a client has s pecified zlib or the client has specified no compressor, the field is omitted. That is, if the client does not specify compression or if the client specifies a compressor not enabled for the connected mongod or mongos instance, the field does not return.

Implementation

List<String>? compression;