Skip to content

RUBY-3215: Update client connection example to include Atlas #2699

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

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

alexbevi
Copy link
Contributor

No description provided.

@alexbevi alexbevi requested review from jamis and comandeo March 17, 2023 20:12
Copy link
Contributor

@jamis jamis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just the one comment.

uri = "mongodb+srv://<username>:<password>@cluster0.sample.mongodb.net/?retryWrites=true&w=majority"

# Set the server_api field of the options object to Stable API version 1
options = server_api: { version: "1" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The outer hash needs curly braces, e.g.:

options = { server_api: { version: "1" } }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏻 fixed

@alexbevi alexbevi requested a review from jamis March 20, 2023 14:03
@alexbevi alexbevi merged commit 7f52414 into mongodb:master Mar 27, 2023
@alexbevi alexbevi deleted the RUBY-3215 branch March 27, 2023 18:46
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