apiargs-MongoDBCollection-method-watch-option.yaml 1.92 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
---
arg_name: option
name: batchSize
type: integer
description: |
  Specifies the maximum number of change events to return in each batch of the
  response from the MongoDB cluster.
interface: phpmethod
operation: ~
optional: true
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
---
source:
  file: apiargs-MongoDBCollection-common-option.yaml
  ref: collation
---
arg_name: option
name: fullDocument
type: string
description: |
  Allowed values are 'default' and 'updateLookup'. Defaults to 'default'.
  When set to 'updateLookup', the change notification for partial updates will
  include both a delta describing the changes to the document, as well as a
  copy of the entire document that was changed from some time after the change
  occurred. The following values are supported:

  - ``MongoDB\Operation\ChangeStream::FULL_DOCUMENT_DEFAULT`` (*default*)
  - ``MongoDB\Operation\ChangeStream::FULL_DOCUMENT_UPDATE_LOOKUP``
28 29 30 31

  .. note::

     This is an option of the `$changeStream` pipeline stage.
32 33 34 35
interface: phpmethod
operation: ~
optional: true
---
36 37 38 39 40 41 42 43 44
arg_name: option
name: maxAwaitTimeMS
type: integer
description: |
  Positive integer denoting the time limit in milliseconds for the server to
  block a getMore operation if no data is available.
interface: phpmethod
operation: ~
optional: true
45
---
46 47 48 49
source:
  file: apiargs-MongoDBCollection-common-option.yaml
  ref: readConcern
---
50 51 52 53 54
source:
  file: apiargs-MongoDBCollection-common-option.yaml
  ref: readPreference
post: |
  This is used for both the initial change stream aggregation and for
55 56 57 58 59 60 61 62
  server selection during an automatic resume.
---
arg_name: option
name: resumeAfter
type: array|object
description: |
  Specifies the logical starting point for the new change stream.

63 64 65
  .. note::

     This is an option of the `$changeStream` pipeline stage.
66 67 68
interface: phpmethod
operation: ~
optional: true
69 70 71 72
---
source:
  file: apiargs-common-option.yaml
  ref: session
73 74 75 76
---
source:
  file: apiargs-MongoDBCollection-common-option.yaml
  ref: typeMap
77
...