-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-1492 count, create, shardCollection #1061
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
object: | ||
name: count | ||
type: dbcommand | ||
field: | ||
optional: false | ||
type: field | ||
name: count | ||
type: string | ||
position: 1 | ||
description: | | ||
The name of the collection to count. | ||
--- | ||
object: | ||
name: count | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: query | ||
type: document | ||
position: 2 | ||
description: | | ||
The selection query to determine which documents in the collection to | ||
count. | ||
--- | ||
object: | ||
name: count | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: limit | ||
type: integer | ||
position: 3 | ||
description: | | ||
The maximum number of matching documents to return. | ||
--- | ||
object: | ||
name: count | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: skip | ||
type: integer | ||
position: 4 | ||
description: | | ||
The number of matching documents to skip before returning results. | ||
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
object: | ||
name: create | ||
type: dbcommand | ||
field: | ||
optional: false | ||
type: field | ||
name: create | ||
type: string | ||
position: 1 | ||
description: | | ||
The name of the new collection. | ||
--- | ||
object: | ||
name: create | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: capped | ||
type: Boolean | ||
position: 2 | ||
description: | | ||
Creates a :term:`capped collection`. To create a capped collection, | ||
specify ``true``. If you create a capped collection, you must also set | ||
a maximum size in the ``size`` field. | ||
--- | ||
object: | ||
name: create | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: autoIndexID | ||
type: Boolean | ||
position: 3 | ||
description: | | ||
Disables the automatic creation of an index on the ``_id`` field. To | ||
disable the automatic creation, specify ``false``. Before 2.2, the | ||
default value for ``autoIndexId`` was ``false``. | ||
--- | ||
object: | ||
name: create | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: size | ||
type: integer | ||
position: 4 | ||
description: | | ||
The maximum size for the capped collection. Once a capped collection | ||
reaches its maximum size, MongoDB drops old documents from the | ||
collection to make way for new documents. The ``size`` field is | ||
required for capped collections. | ||
--- | ||
object: | ||
name: create | ||
type: dbcommand | ||
field: | ||
optional: true | ||
type: field | ||
name: max | ||
type: integer | ||
position: 5 | ||
description: | | ||
The maximum number of documents to keep in the capped collection. The | ||
``size`` limit takes precedence over this limit. If a capped | ||
collection reaches its maximum size before it reaches the maximum | ||
number of documents, MongoDB removes old documents. If you use this | ||
limit, ensure that the ``size`` limit is sufficient to contain the | ||
documents limit. | ||
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
brackets/whitespace are inconsistent 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.
I think it's the way it renders on the screen. In the text source, brackets are in column 8 and fields in column 10.
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.
the brace is on line 18 with a key/value pair, but appears at the start of 23 rather than 22.