-
Notifications
You must be signed in to change notification settings - Fork 49
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 - add comments #770
docsp-32718 - add comments #770
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.
Few things + questions!
@@ -7,9 +7,12 @@ const client = new MongoClient(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.
Q: I thought we were supposed to add code comments for the import statement and client creation as well -- Up to you if you want to add to the files throughout this PR.
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.
I saw those in the chat gpt example, but thought they were more like "this is a stop sign" than anything substantial.
const query = { "entries.x": { $type : "string" } }; | ||
|
||
// For each matched element, increase value of y by 33 |
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.
I: I think this example only updates the first matching array element
// For each matched element, increase value of y by 33 | |
// For the first matched array entry, increase value of y by 33 |
async function run() { | ||
try { |
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.
Q: for the Usage examples that have JS and TS versions, should we update both?
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.
Caitlin confirmed JS only
Co-authored-by: Rea Rustagi <[email protected]>
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.
lgtm!
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
(cherry picked from commit 11461c3)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]>
* DOCSP-31824: Update page titles (mongodb#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (mongodb#770) (cherry picked from commit 11461c3) * Added code comments (mongodb#772) (mongodb#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
* DOCSP-31824: Update page titles (#774) (cherry picked from commit 9cd60b1) * DOCSP-30081: Fix find to find() * docsp-32718 - add comments (#770) (cherry picked from commit 11461c3) * Added code comments (#772) (#778) (cherry picked from commit 5b0652a) * removed nested components * fixing bulkWrite * Fixing bulkwrite --------- Co-authored-by: Nora Reidy <[email protected]> Co-authored-by: Mike Woofter <[email protected]> Co-authored-by: Jordan Smith <[email protected]> (cherry picked from commit fa3f2bc)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-32718
Staging:
Self-Review Checklist