-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(FindCursor): fluent builder for allowDiskUse option #2678
Conversation
src/operations/find.ts
Outdated
@@ -52,7 +52,7 @@ export interface FindOptions extends CommandOperationOptions { | |||
noCursorTimeout?: boolean; | |||
/** Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields). */ | |||
collation?: CollationOptions; | |||
/** Enables writing to temporary files on the server. */ | |||
/** Allows disk use for blocking sort operations exceeding 100MB memory. */ |
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 wonder if this might be a good opportunity to experiment with improving these docs even more by linking to them: https://docs.mongodb.com/manual/reference/command/find/#find-cmd-allowdiskuse
Also, does typedoc support any way of marking an option supported since a certain MongoDB version? It would be cool to use jsdoc's @since
tag here
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.
@since
is not supported by tsdoc unfortunately, but we could maybe use @remarks
to separate summary/details? E.g.
/**
* Allows disk use for blocking sort operations exceeding 100MB memory.
* @remarks
* Since MongoDB 3.2.
* {@link https://docs.mongodb.com/manual/reference/command/find/#find-cmd-allowdiskuse | find command allowDiskUse documentation}
*/
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
NODE-2955