Module: stream

Classes

Subscription

Type Definitions


Options

Type:
  • Object
Properties:
Name Type Argument Default Description
fields Array.<string> <optional>
['action', 'document', 'diff', 'prev']

The fields event fields to opt-in during stream subscription. Possible options:

  • 'action': The action type
  • 'document': The document's data
  • 'diff': The difference between 'document' and 'prev'
  • 'prev': The event's previous data