-
Notifications
You must be signed in to change notification settings - Fork 34
DOCSP-44608: merge v2 into master #174
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
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
79476ed
DOCSP-43668: v2 removal of gridfs fields
rustagir 2a9dea4
add intro sentences
rustagir 82b2292
DOCSP-43951: v2 remove deprecated find opts
rustagir 63e4f8a
DOCSP-43950: remove isgeohaystack v2
rustagir e3d71c4
netlify trigger
rustagir 05f741b
DOCSP-43954: v2 - remove mapreduce
rustagir ea9fc2f
DOCSP-44002: v2 void return types
rustagir 6b37fef
move bc into an admonition
rustagir 7bec614
DOCSP-44238: v2 remove autoindex
rustagir 30df461
fix option name
rustagir f39e694
extra line
rustagir 0b44e31
DOCSP-43953: v2 iterator changes
rustagir 41bafd1
remove double slashes
rustagir b609a66
DOCSP-44239: v2 remove flags option
rustagir dc9f6c2
Merge pull request #173 from rustagir/DOCSP-44239-v2-remove-flags-opt
rustagir 73bd978
small fixes - NR PR comments
rustagir af4e400
Merge branch 'v2.0' into DOCSP-43953-v2-iterator-changes
rustagir 4205c7c
Merge pull request #172 from rustagir/DOCSP-43953-v2-iterator-changes
rustagir 46c4c18
vale
rustagir c609d2d
JM tech review 1
rustagir 3537806
separate params for coll and grifs find
rustagir f4033f5
remove defaultdomains
rustagir 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
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
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,119 @@ | ||
``$filter`` : array|object | ||
The filter criteria that specifies the documents to query. | ||
|
||
``$options`` : array | ||
An array specifying the desired options. | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 20 20 80 | ||
|
||
* - Name | ||
- Type | ||
- Description | ||
|
||
* - allowDiskUse | ||
- boolean | ||
- Enables writing to temporary files. When set to ``true``, queries can | ||
write data to the ``_tmp`` sub-directory in the ``dbPath`` directory. | ||
|
||
* - allowPartialResults | ||
- boolean | ||
- For queries against a sharded collection, returns partial results from | ||
the :program:`mongos` if some shards are unavailable instead of | ||
throwing an error. | ||
|
||
* - codec | ||
- MongoDB\\Codec\\DocumentCodec | ||
- .. include:: /includes/extracts/collection-option-codec.rst | ||
|
||
.. versionadded:: 1.17 | ||
|
||
* - collation | ||
- array|object | ||
- .. include:: /includes/extracts/collection-option-collation.rst | ||
|
||
* - comment | ||
- mixed | ||
- .. include:: /includes/extracts/common-option-comment.rst | ||
|
||
.. include:: /includes/extracts/common-option-comment-string-before-4.4.rst | ||
|
||
* - hint | ||
- string|array|object | ||
- .. include:: /includes/extracts/common-option-hint.rst | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - let | ||
- array|object | ||
- .. include:: /includes/extracts/common-option-let.rst | ||
|
||
.. versionadded:: 1.13 | ||
|
||
* - max | ||
- array|object | ||
- The exclusive upper bound for a specific index. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - maxTimeMS | ||
- integer | ||
- .. include:: /includes/extracts/common-option-maxTimeMS.rst | ||
|
||
* - min | ||
- array|object | ||
- The inclusive lower bound for a specific index. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - projection | ||
- array|object | ||
- The :ref:`projection specification <projections>` to determine which | ||
fields to include in the returned documents. See | ||
:manual:`Project Fields to Return from Query </tutorial/project-fields-from-query-results>` | ||
and :manual:`Projection Operators </reference/operator/projection>` in | ||
the MongoDB manual. | ||
|
||
* - readConcern | ||
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>` | ||
- .. include:: /includes/extracts/collection-option-readConcern.rst | ||
|
||
.. include:: /includes/extracts/common-option-readConcern-transaction.rst | ||
|
||
* - readPreference | ||
- :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>` | ||
- .. include:: /includes/extracts/collection-option-readPreference.rst | ||
|
||
* - returnKey | ||
- boolean | ||
- If true, returns only the index keys in the resulting documents. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - session | ||
- :php:`MongoDB\Driver\Session <class.mongodb-driver-session>` | ||
- .. include:: /includes/extracts/common-option-session.rst | ||
|
||
.. versionadded:: 1.3 | ||
|
||
* - showRecordId | ||
- boolean | ||
- Determines whether to return the record identifier for each document. | ||
If true, adds a field ``$recordId`` to the returned documents. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - skip | ||
- integer | ||
- Number of documents to skip. Defaults to ``0``. | ||
|
||
* - sort | ||
- array|object | ||
- The sort specification for the ordering of the results. | ||
|
||
* - typeMap | ||
- array | ||
- .. include:: /includes/extracts/collection-option-typeMap.rst | ||
|
||
This will be used for the returned result document. |
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,160 @@ | ||
``$filter`` : array|object | ||
The filter criteria that specifies the documents to query. | ||
|
||
``$options`` : array | ||
An array specifying the desired options. | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 20 20 80 | ||
|
||
* - Name | ||
- Type | ||
- Description | ||
|
||
* - allowDiskUse | ||
- boolean | ||
- Enables writing to temporary files. When set to ``true``, queries can | ||
write data to the ``_tmp`` sub-directory in the ``dbPath`` directory. | ||
|
||
* - allowPartialResults | ||
- boolean | ||
- For queries against a sharded collection, returns partial results from | ||
the :program:`mongos` if some shards are unavailable instead of | ||
throwing an error. | ||
|
||
* - batchSize | ||
- integer | ||
- The number of documents to return in the first batch. Defaults to | ||
``101``. A batchSize of ``0`` means that the cursor will be | ||
established, but no documents will be returned in the first batch. | ||
|
||
Unlike the previous wire protocol version, a batchSize of ``1`` for the | ||
:dbcommand:`find` command does not close the cursor. | ||
|
||
* - codec | ||
- MongoDB\\Codec\\DocumentCodec | ||
- .. include:: /includes/extracts/collection-option-codec.rst | ||
|
||
.. versionadded:: 1.17 | ||
|
||
* - collation | ||
- array|object | ||
- .. include:: /includes/extracts/collection-option-collation.rst | ||
|
||
* - comment | ||
- mixed | ||
- .. include:: /includes/extracts/common-option-comment.rst | ||
|
||
.. include:: /includes/extracts/common-option-comment-string-before-4.4.rst | ||
|
||
* - cursorType | ||
- integer | ||
- Indicates the type of cursor to use. ``cursorType`` supports the | ||
following values: | ||
|
||
- ``MongoDB\Operation\Find::NON_TAILABLE`` (*default*) | ||
- ``MongoDB\Operation\Find::TAILABLE`` | ||
|
||
* - hint | ||
- string|array|object | ||
- .. include:: /includes/extracts/common-option-hint.rst | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - let | ||
- array|object | ||
- .. include:: /includes/extracts/common-option-let.rst | ||
|
||
.. versionadded:: 1.13 | ||
|
||
* - limit | ||
- integer | ||
- The maximum number of documents to return. If unspecified, then | ||
defaults to no limit. A limit of ``0`` is equivalent to setting no | ||
limit. | ||
|
||
A negative limit is similar to a positive limit but closes the cursor | ||
after returning a single batch of results. As such, with a negative | ||
limit, if the limited result set does not fit into a single batch, the | ||
number of documents received will be less than the specified limit. By | ||
passing a negative limit, the client indicates to the server that it | ||
will not ask for a subsequent batch by using getMore. | ||
|
||
* - max | ||
- array|object | ||
- The exclusive upper bound for a specific index. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - maxAwaitTimeMS | ||
- integer | ||
- Positive integer denoting the time limit in milliseconds for the server | ||
to block a getMore operation if no data is available. This option | ||
should only be used if cursorType is ``TAILABLE_AWAIT``. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - maxTimeMS | ||
- integer | ||
- .. include:: /includes/extracts/common-option-maxTimeMS.rst | ||
|
||
* - min | ||
- array|object | ||
- The inclusive lower bound for a specific index. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - noCursorTimeout | ||
- boolean | ||
- Prevents the server from timing out idle cursors after an inactivity | ||
period (10 minutes). | ||
|
||
* - projection | ||
- array|object | ||
- The :ref:`projection specification <projections>` to determine which | ||
fields to include in the returned documents. See | ||
:manual:`Project Fields to Return from Query </tutorial/project-fields-from-query-results>` | ||
and :manual:`Projection Operators </reference/operator/projection>` in | ||
the MongoDB manual. | ||
|
||
* - readConcern | ||
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>` | ||
- .. include:: /includes/extracts/collection-option-readConcern.rst | ||
|
||
.. include:: /includes/extracts/common-option-readConcern-transaction.rst | ||
|
||
* - readPreference | ||
- :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>` | ||
- .. include:: /includes/extracts/collection-option-readPreference.rst | ||
|
||
* - returnKey | ||
- boolean | ||
- If true, returns only the index keys in the resulting documents. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - session | ||
- :php:`MongoDB\Driver\Session <class.mongodb-driver-session>` | ||
- .. include:: /includes/extracts/common-option-session.rst | ||
|
||
.. versionadded:: 1.3 | ||
|
||
* - showRecordId | ||
- boolean | ||
- Determines whether to return the record identifier for each document. | ||
If true, adds a field ``$recordId`` to the returned documents. | ||
|
||
.. versionadded:: 1.2 | ||
|
||
* - skip | ||
- integer | ||
- Number of documents to skip. Defaults to ``0``. | ||
|
||
* - sort | ||
- array|object | ||
- The sort specification for the ordering of the results. | ||
|
||
* - typeMap | ||
- array | ||
- .. include:: /includes/extracts/collection-option-typeMap.rst |
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
This file was deleted.
Oops, something went wrong.
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.
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.
Uh oh!
There was an error while loading. Please reload this page.