MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster.
///////////
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
setName: null,
maxSetVersion: null,
maxElectionId: null,
servers: Map(0) {},
stale: false,
compatible: true,
compatibilityError: null,
logicalSessionTimeoutMinutes: null,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
commonWireVersion: 9
}
}
Mongoose default connection is open to mongodb://localhost:27017
MongoError: The $changeStream stage is only supported on replica sets
at MessageStream.messageHandler
mongodb.MongoClient(mongoUrl)