Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adding replicaset info to mongosh connection command. #145

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

jfavellar90
Copy link
Member

@jfavellar90 jfavellar90 commented Oct 16, 2024

This PR aims to:

  • Include the MongoDB port in the mongosh command (useful when running MongoDB in a different port)
  • Include the replica set info in the mongosh command. It could be the case you aren't connected to a replica set primary but to a secondary one. If the replica set name is not specified, the mongosh command will fail since it is not possible to write to a secondary

@jfavellar90 jfavellar90 requested a review from a team as a code owner October 16, 2024 14:17
@jfavellar90 jfavellar90 merged commit 8855736 into main Oct 16, 2024
4 checks passed
@jfavellar90 jfavellar90 deleted the Jhony/fix_mongo_command branch October 16, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants