Module: stream

Classes

Subscription

Type Definitions

Options

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

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
  • 'index': The event's source index, if a set event
Source: