-
Notifications
You must be signed in to change notification settings - Fork 52
DOCSP-32718: Compound comments #771
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
DOCSP-32718: Compound comments #771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non blocking comments
@@ -5,12 +5,16 @@ const { MongoClient } = require("mongodb"); | |||
const uri = | |||
"mongodb+srv://<user>:<password>@<cluster-url>?writeConcern=majority"; | |||
|
|||
// Create a new instance of the MongoClient using the provided URI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Simplify
// 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: delete this code comment, as it is not related to the mongodb operation (it is JS scaffolding)
const sort = { type: 1, genre: 1 }; | ||
// Include the type and genre fields in the query results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Include the type and genre fields in the query results | |
// Include only the type and genre fields in the query results |
await client.close(); | ||
} | ||
} | ||
// Call the "run" function and handle any errors using console.dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Call the "run" function and handle any errors using console.dir | |
// Run the function and handle any errors |
* DOCSP-32718: insertOne comments * DOCSP-32718: runCommand comments * DOCSP-32718: compound comments * Revert "DOCSP-32718: insertOne comments" This reverts commit 6d1c8ac. * Revert "DOCSP-32718: runCommand comments" This reverts commit d7a2f49. * addressing feedback (cherry picked from commit f751b1b)
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-compound-comments/fundamentals/indexes/
Self-Review Checklist