-
Notifications
You must be signed in to change notification settings - Fork 43
DOCSP-33345: Java code comments pt. 2 #470
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-33345: Java code comments pt. 2 #470
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.
Added a few comments, but LGTM
/** | ||
* This file demonstrates how to find distinct values of a field by using the Java driver. | ||
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | ||
* distinct "year" values for documents that match the specified query filter. | ||
*/ |
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.
/** | |
* This file demonstrates how to find distinct values of a field by using the Java driver. | |
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | |
* distinct "year" values for documents that match the specified query filter. | |
*/ | |
// Find distinct values of a field by using the MongoDB Java driver |
/** | ||
* This file demonstrates how to find multiple documents by using the Java driver. | ||
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | ||
* documents in the "movies" collection that match the specified query filter. | ||
* The code projects certain fields in the returned documents and sorts them according to | ||
* specified criteria. | ||
*/ |
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.
/** | |
* This file demonstrates how to find multiple documents by using the Java driver. | |
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | |
* documents in the "movies" collection that match the specified query filter. | |
* The code projects certain fields in the returned documents and sorts them according to | |
* specified criteria. | |
*/ | |
// Find multiple documents by using the MongoDB Java driver |
/** | ||
* This file demonstrates how to find a document by using the Java driver. | ||
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | ||
* a document in the "movies" collection that matches the specified query filter. | ||
* The code projects certain fields in the returned document. | ||
*/ |
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.
/** | |
* This file demonstrates how to find a document by using the Java driver. | |
* It connects to a MongoDB deployment, accesses the "sample_mflix" database, and finds | |
* a document in the "movies" collection that matches the specified query filter. | |
* The code projects certain fields in the returned document. | |
*/ | |
// Find a document by using the MongoDB Java driver |
/** | ||
* This file demonstrates how to insert multiple documents into a collection by | ||
* using the Java driver. | ||
* The file connects to a MongoDB deployment, accesses the "sample_mflix" database, | ||
* and inserts two new documents into the "movies" collection. | ||
*/ |
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.
/** | |
* This file demonstrates how to insert multiple documents into a collection by | |
* using the Java driver. | |
* The file connects to a MongoDB deployment, accesses the "sample_mflix" database, | |
* and inserts two new documents into the "movies" collection. | |
*/ | |
// Insert multiple documents into a collection using the Java driver. |
/** | ||
* This file demonstrates how to insert a document into a collection by using the | ||
* Java driver. | ||
* The file connects to a MongoDB deployment, accesses the "sample_mflix" database, | ||
* and inserts a new document into the "movies" collection. | ||
*/ |
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.
/** | |
* This file demonstrates how to insert a document into a collection by using the | |
* Java driver. | |
* The file connects to a MongoDB deployment, accesses the "sample_mflix" database, | |
* and inserts a new document into the "movies" collection. | |
*/ | |
// Insert a document into a collection using the MongoDB Java driver. |
* DOCSP-33345: Java code comments pt. 2 * CC edits * CD feedback + sheet syntax (cherry picked from commit 9399fbc)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-33345
Staging:
Distinct - https://preview-mongodbnorareidy.gatsbyjs.io/java/DOCSP-33345-java-comments-2/usage-examples/distinct/
Find - https://preview-mongodbnorareidy.gatsbyjs.io/java/DOCSP-33345-java-comments-2/usage-examples/find/
FindOne - https://preview-mongodbnorareidy.gatsbyjs.io/java/DOCSP-33345-java-comments-2/usage-examples/findOne/
InsertMany - https://preview-mongodbnorareidy.gatsbyjs.io/java/DOCSP-33345-java-comments-2/usage-examples/insertMany/
InsertOne - https://preview-mongodbnorareidy.gatsbyjs.io/java/DOCSP-33345-java-comments-2/usage-examples/insertOne/
Self-Review Checklist