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

Aggregation cursor doesn’t print properly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.8.0
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Iteration Uglifruit
    • Not Needed

      Current master:

       db.test.aggregate({$match:{}})
      PrintableCursorIterationResult {
        documents: [
          { _id: ObjectId("5fac5b82f450e4e7e5f72cd4"), a: 1333, x: 1 },
          { _id: ObjectId("5fac5b82f450e4e7e5f72cd5"), b: 2, x: 1 },
          { _id: ObjectId("5fac5b82f450e4e7e5f72cd6"), c: 'abc', x: 5 },
          { _id: ObjectId("5fec7934b60dd9a4606f8d0f"), i: 0 },
          { _id: ObjectId("5fec7935b60dd9a4606f8d10"), i: 1 },
          { _id: ObjectId("5fec7936b60dd9a4606f8d11"), i: 2 },
          { _id: ObjectId("5fec7936b60dd9a4606f8d12"), i: 3 },
          { _id: ObjectId("5fec7936b60dd9a4606f8d13"), i: 4 },
          { _id: ObjectId("5fec7936b60dd9a4606f8d14"), i: 5 },
          { _id: ObjectId("5fec7937b60dd9a4606f8d15"), i: 6 },
          { _id: ObjectId("5fec7937b60dd9a4606f8d16"), i: 7 },
          { _id: ObjectId("5fec7937b60dd9a4606f8d17"), i: 8 },
          { _id: ObjectId("5fec7937b60dd9a4606f8d18"), i: 9 },
          { _id: ObjectId("5fec7937b60dd9a4606f8d19"), i: 10 },
          { _id: ObjectId("5fec7938b60dd9a4606f8d1a"), i: 11 },
          { _id: ObjectId("5fec7938b60dd9a4606f8d1b"), i: 12 },
          { _id: ObjectId("5fec7938b60dd9a4606f8d1c"), i: 13 },
          { _id: ObjectId("5fec7938b60dd9a4606f8d1d"), i: 14 },
          { _id: ObjectId("5fec7938b60dd9a4606f8d1e"), i: 15 },
          { _id: ObjectId("5fec7939b60dd9a4606f8d1f"), i: 16 }
        ],
        cursorHasMore: false
      }
      

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: