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

db.getCollectionInfos doesnt get pipeline information

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      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)

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

              Created:
              Updated:
              Resolved: