Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16665

The documentation for the analyzeShardKey shell helper has incorrect syntax

      Currently, the syntax in the documentation is:

      db.collection.analyzeShardKey(
         {
           key: <shardKey>,
           keyCharacteristics: <bool>,
           readWriteDistribution: <bool>,
           sampleRate: <double>,
           sampleSize: <int>
         }
       )
      

      but it should be:

      db.collection.analyzeShardKey(
          <shardKey>,
         {
           keyCharacteristics: <bool>,
           readWriteDistribution: <bool>,
           sampleRate: <double>,
           sampleSize: <int>
         }
       )
      

            Assignee:
            joseph.dougherty@mongodb.com Joseph Dougherty
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 weeks, 4 days ago