-
Notifications
You must be signed in to change notification settings - Fork 10
DOCSP-41152: Time Series #23
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
Conversation
👷 Deploy request for docs-kotlin-sync pending review.Visit the deploys page to approve it
|
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.
good job! a few quick fixes
|
||
- The name of the new collection to create | ||
|
||
- A `CreateCollectionOptions <{+core-api+}/com/mongodb/client/model/CreateCollectionOptions.html>`__ |
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: The API docs state that CreateCollectionOptions is a class, change "object" to "class"
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.
In Java, an object refers to an individual instantiation of a class (i.e. a class is the "template" and the object is the thing made from the template). In this case, I think it makes sense to leave this as "object".
source/data-formats/time-series.txt
Outdated
- The name of the new collection to create | ||
|
||
- A `CreateCollectionOptions <{+core-api+}/com/mongodb/client/model/CreateCollectionOptions.html>`__ | ||
object containing the `TimeSeriesOptions <{+core-api+}/com/mongodb/client/model/TimeSeriesOptions.html>`__ object |
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: Containing seems like a weird word choice here because in the example, timesseriesoptions is chained to createcollectionoptions. If it was containing, i'd expect TimeSeriesOptions to be a parameter.
S: Clarify that you chain TimeSeriesOptions to CreateConnectionOptions to create a timeseries 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.
lgtm
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.
One optional nit but either way LGTM!
val results = database.listCollections() | ||
|
||
results.forEach { result -> | ||
println(result.toJson(JsonWriterSettings.builder().indent(true).build())) |
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.
Nit: You could create the settings just once and reuse
(cherry picked from commit c8d9955)
(cherry picked from commit c8d9955)
Adapted from the C++ draft and Kotlin Coroutine versions of this page.
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-41152
Staging - https://preview-mongodbmcmorisi.gatsbyjs.io/kotlin-sync/DOCSP-41152-time-series/data-formats/time-series/
Self-Review Checklist