Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1965

freeStorageSize is not propagated in db.coll.stats() when using the $collStats stage

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell API
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Developer Tools

      It seems that when we do the mapping of fields from the new format of $collStats, we don't propagate all relevant fields in the output. In this `if` it seems we are missing the `freeStorageSize`.

      https://github.com/mongodb-js/mongosh/blob/f9a0631268eaef5b4e441c837d7dec2e0893a21d/packages/shell-api/src/collection.ts#L1718

      We likely want to take a look at other fields we might be missing too.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: