0

Following the AWS documentation we are trying to list all change streams using the command

cursor = new DBCommandCursor(db,
    db.runCommand(
        {aggregate: 1,
            pipeline: [{$listChangeStreams: 1}], cursor:{}}));

We are running this in the MongoSH provided in the MongoDB Compass application. But we are getting an error that says: "ReferenceError: DBCommandCursor is not defined". I am completely lost on how to solve this.

outstacked
  • 201
  • 1
  • 4
  • 11

0 Answers0