message: mongoose 4.11 upgradation issue: DomainsEnabled was not set for replicaSet slave db.
diff: @@ -35,7 +35,7 @@ function getConnection(connectionString, connectionOption): Q.IPromise<any> {
  return Q.when(false);
  if (!allConnections[connectionString]) {
  - var conn = Mongoose.createConnection(connectionString, connectionOption);
  + var conn = Mongoose.createConnection(connectionString, defaultDomainOptions(connectionOption));
  allConnections[connectionString] = conn;
  return connectDataBase(conn, connectionString);
  }
  @@ -66,3 +66,18 @@ function connectDataBase(conn, connectionString): Q.IPromise<any> {
  });
  return defer.promise;
  }
  +
  +function defaultDomainOptions(connectionOption: any) {
  + if (!connectionOption) {
  + connectionOption = {};
  + }
  + if (!connectionOption['server']) {
  + connectionOption['server'] = {};
  + }
  + if (!connectionOption['replset']) {
  + connectionOption['replset'] = {};
  + }
  + connectionOption['server']['domainsEnabled'] = true;
  + connectionOption['replset']['domainsEnabled'] = true;
  + return connectionOption;
  +}
  \ No newline at end of file
  