Skip to content

Commit 51c0f83

Browse files
authored
feat(shell-api): allowDiskUse now takes a boolean MONGOSH-1183 (#1284)
* allowDiskUse now takes a boolean so you can get back to false from 6.0 onwards * tweak example
1 parent 83b14d7 commit 51c0f83

File tree

6 files changed

+167
-44
lines changed

6 files changed

+167
-44
lines changed

packages/arg-parser/package-lock.json

Lines changed: 58 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/i18n/src/locales/en_US.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ const translations: Catalog = {
735735
},
736736
allowDiskUse: {
737737
link: 'https://docs.mongodb.com/manual/reference/method/cursor.allowDiskUse',
738-
description: "Sets the 'allowDiskUse' option to true.",
739-
example: 'db.collection.find(query, projection).allowDiskUse()'
738+
description: "Sets the 'allowDiskUse' option. If no argument is passed, the default is true.",
739+
example: 'db.collection.find(query, projection).sort(sort).allowDiskUse(false)'
740740
},
741741
batchSize: {
742742
link: 'https://docs.mongodb.com/manual/reference/method/cursor.batchSize',

0 commit comments

Comments
 (0)