Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3585

MongoClientOptions#compressors has incorrect type

    • Not Needed

      interface MongoClientOptions in mongodb.d.ts contains property definition as below:

       

      /** Comma-delimited string of compressors to enable network compression for communication between this client and a mongod/mongos instance. */
      compressors?: CompressorName[];

       

      You can already see the issue from the discrepancy between the documentation comment and field type. Documentation is in fact correct here and "compressors" property is a comma delimited string, not as the type suggests an array of strings.

       

            Assignee:
            daria.pardue@mongodb.com Daria Pardue
            Reporter:
            pawel@pricingmonkey.com Pawel Badenski
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: