|
1 |
| -arg_name: option |
2 |
| -name: allowDiskUse |
3 |
| -type: boolean |
4 |
| -description: | |
5 |
| - Enables writing to temporary files. When set to ``true``, aggregation stages |
6 |
| - can write data to the ``_tmp`` sub-directory in the ``dbPath`` directory. The |
7 |
| - default is ``false``. |
8 |
| -interface: phpmethod |
9 |
| -operation: ~ |
10 |
| -optional: true |
| 1 | +source: |
| 2 | + file: apiargs-aggregate-option.yaml |
| 3 | + ref: allowDiskUse |
11 | 4 | ---
|
12 |
| -arg_name: option |
13 |
| -name: batchSize |
14 |
| -type: integer |
15 |
| -description: | |
16 |
| - Specifies the initial batch size for the cursor. A batchSize of ``0`` means an |
17 |
| - empty first batch and is useful for quickly returning a cursor or failure |
18 |
| - message without doing significant server-side work. |
19 |
| -interface: phpmethod |
20 |
| -operation: ~ |
21 |
| -optional: true |
| 5 | +source: |
| 6 | + file: apiargs-aggregate-option.yaml |
| 7 | + ref: batchSize |
22 | 8 | ---
|
23 | 9 | source:
|
24 |
| - file: apiargs-MongoDBCollection-common-option.yaml |
| 10 | + file: apiargs-aggregate-option.yaml |
25 | 11 | ref: bypassDocumentValidation
|
26 |
| -post: | |
27 |
| - This only applies when using the :ref:`$out <agg-out>` stage. |
28 |
| -
|
29 |
| - Document validation requires MongoDB 3.2 or later: if you are using an earlier |
30 |
| - version of MongoDB, this option will be ignored. |
31 | 12 | ---
|
32 |
| -arg_name: option |
33 |
| -name: comment |
34 |
| -type: string |
35 |
| -description: | |
36 |
| - Users can specify an arbitrary string to help trace the operation through the |
37 |
| - database profiler, currentOp, and logs. |
38 |
| -
|
| 13 | +source: |
| 14 | + file: apiargs-aggregate-option.yaml |
| 15 | + ref: comment |
| 16 | +post: | |
39 | 17 | .. versionadded:: 1.3
|
40 |
| -interface: phpmethod |
41 |
| -operation: ~ |
42 |
| -optional: true |
43 | 18 | ---
|
44 |
| -arg_name: option |
45 |
| -name: explain |
46 |
| -type: boolean |
47 |
| -description: | |
48 |
| - Specifies whether or not to return the information on the processing of the |
49 |
| - pipeline. |
50 |
| -
|
| 19 | +source: |
| 20 | + file: apiargs-aggregate-option.yaml |
| 21 | + ref: explain |
| 22 | +post: | |
51 | 23 | .. versionadded:: 1.4
|
52 |
| -interface: phpmethod |
53 |
| -operation: ~ |
54 |
| -optional: true |
55 | 24 | ---
|
56 |
| -arg_name: option |
57 |
| -name: hint |
58 |
| -type: string|array|object |
59 |
| -description: | |
60 |
| - The index to use. Specify either the index name as a string or the index key |
61 |
| - pattern as a document. If specified, then the query system will only consider |
62 |
| - plans using the hinted index. |
63 |
| -
|
| 25 | +source: |
| 26 | + file: apiargs-aggregate-option.yaml |
| 27 | + ref: hint |
| 28 | +post: | |
64 | 29 | .. versionadded:: 1.3
|
65 |
| -interface: phpmethod |
66 |
| -operation: ~ |
67 |
| -optional: true |
68 | 30 | ---
|
69 | 31 | source:
|
70 | 32 | file: apiargs-common-option.yaml
|
@@ -96,6 +58,12 @@ type: boolean
|
96 | 58 | description: |
|
97 | 59 | Indicates whether the command will request that the server provide results
|
98 | 60 | using a cursor. The default is ``true``.
|
| 61 | +
|
| 62 | + .. note:: |
| 63 | +
|
| 64 | + MongoDB 3.6+ no longer supports returning results without a cursor (excluding |
| 65 | + when the explain option is used) and specifying false for this option will |
| 66 | + result in a server error. |
99 | 67 | interface: phpmethod
|
100 | 68 | operation: ~
|
101 | 69 | optional: true
|
|
0 commit comments