Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7383

db.getCollectionInfos doesnt get pipeline information

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • No version
    • None
    • None
    • None
    • OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

    Description

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      db.getCollectionInfos({name:'firstYears'})

      [
        {
          name: 'firstYears',
          type: 'view',
          options: { viewOn: 'students', pipeline: [Array] },
          info: { readOnly: true }
        }
      ]

       

      Expected Results

      here is the output from shell

      replset [direct: primary] test> db.getCollectionInfos({name:'firstYears'})
      [
        {
          name: 'firstYears',
          type: 'view',
          options: {
            viewOn: 'students',
            pipeline: [ { '$match': { year: 1 } } ]
          },
          info: { readOnly: true }
        }
      ]

      Actual Results

      What do you observe is happening?

      Additional Notes

      MongoDB 7.0.0 Community

      Compass Version 1.40.4 (1.40.4)

      Attachments

        Activity

          People

            Unassigned Unassigned
            gregory.vinopal@mongodb.com Gregory Vinopal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: