apiargs-common-option.yaml 2.6 KB
Newer Older
1
arg_name: option
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
name: collation
type: array|object
description: |
   :manual:`Collation </reference/collation>` allows users to specify
   language-specific rules for string comparison, such as rules for lettercase
   and accent marks. When specifying collation, the ``locale`` field is
   mandatory; all other collation fields are optional. For descriptions of the
   fields, see :manual:`Collation Document
   </reference/collation/#collation-document>`.

   This option is available in MongoDB 3.4+ and will result in an exception at
   execution time if specified for an older server version.
interface: phpmethod
operation: ~
optional: true
---
arg_name: option
19 20 21 22 23 24 25 26 27 28 29
name: maxTimeMS
type: integer
description: |
   The cumulative time limit in milliseconds for processing operations on the
   cursor. MongoDB aborts the operation at the earliest following
   :term:`interrupt point`.
interface: phpmethod
operation: ~
optional: true
---
arg_name: option
30 31 32
name: readConcern
type: :php:`MongoDB\\Driver\\ReadConcern <class.mongodb-driver-readconcern>`
description: |
33 34
  The default read concern to use for {{resource}} operations. Defaults to the
  {{parent}}'s read concern.
35 36 37 38 39
interface: phpmethod
operation: selectCollection
optional: true
replacement:
  resource: "collection"
40
  parent: "client"
41 42
---
arg_name: option
43 44
name: readPreference
type: :php:`MongoDB\\Driver\\ReadPreference <class.mongodb-driver-readpreference>`
45
description: |
46 47
  The default read preference to use for {{resource}} operations. Defaults to
  the {{parent}}'s read preference.
48
interface: phpmethod
49
operation: ~
50 51 52
optional: true
replacement:
  resource: "collection"
53
  parent: "client"
54 55
---
arg_name: option
56 57 58 59 60 61 62 63 64 65 66
name: session
type: :php:`MongoDB\\Driver\\Session <class.mongodb-driver-session>`
description: |
  Client session to associate with the operation.

  Sessions are not supported for server versions prior to 3.6.
interface: phpmethod
operation: ~
optional: true
---
arg_name: option
67 68
name: typeMap
type: array
69
description: |
70 71 72 73
  The :php:`type map
  <manual/en/mongodb.persistence.deserialization.php#mongodb.persistence.typemaps>`
  to apply to cursors, which determines how BSON documents are converted to PHP
  values. Defaults to the {{parent}}'s type map.
74
interface: phpmethod
75
operation: ~
76 77
optional: true
replacement:
78
  parent: "client"
79 80 81 82 83 84
---
arg_name: option
name: writeConcern
type: :php:`MongoDB\\Driver\\WriteConcern <class.mongodb-driver-writeconcern>`
description: |
  The default write concern to use for {{resource}} operations. Defaults
85
  to the {{parent}}'s write concern.
86
interface: phpmethod
87
operation: ~
88 89 90
optional: true
replacement:
  resource: "collection"
91
  parent: "client"
92
...