Skip to content

DOCSP-32718: insertOne comments #758

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
Sep 5, 2023

Conversation

norareidy
Copy link
Collaborator

@norareidy norareidy commented Aug 30, 2023

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-32718
Staging - https://docs-mongodbcom-staging.corp.mongodb.com/node/docsworker-xlarge/DOCSP-32718-insertOne-comments/usage-examples/insertOne/

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?

@@ -3,22 +3,30 @@ import { MongoClient } from "mongodb";
// Replace the uri string with your MongoDB deployment's connection string.
const uri = "<connection string uri>";

// Create a new instance of the MongoClient using the provided URI
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Create a new instance of the MongoClient using the provided URI
// Create a new client and connect to MongoDB

const client = new MongoClient(uri);

// Define a function to interact with the MongoDB database
Copy link
Collaborator

Choose a reason for hiding this comment

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

S; remove

await client.close();
}
}
// Call the "run" function and handle errors with console.dir
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Call the "run" function and handle errors with console.dir
// Run the function and handle any errors

@norareidy norareidy merged commit 39ff253 into mongodb:master Sep 5, 2023
@norareidy norareidy deleted the DOCSP-32718-insertOne-comments branch September 5, 2023 15:42
norareidy added a commit that referenced this pull request Sep 12, 2023
* DOCSP-32718: insertOne comments

* addressing feedback

(cherry picked from commit 39ff253)
mongoKart pushed a commit to mongoKart/docs-node that referenced this pull request Nov 3, 2023
* DOCSP-32718: insertOne comments

* addressing feedback
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.

2 participants