I\'d like to retrieve all host names without port number using rs.status() in MongoDB replica set. I tried below one but it is not giving the required output.
MongoDB