Optional
effectOptional
eventsArray of event names to include in the observable. By default, only mutation events are included.
Optional
includeOptional
includeWhether or not to include the mutations that was performed.
If you do not need the mutations, set this to false
to reduce bandwidth usage.
Optional
includeWhether or not to include the document as it looked before the mutation event.
The previous revision will be available on the .previous
property of the events,
and may be null
in the case of a new document.
Optional
includeWhether or not to include the resulting document in addition to the mutations performed.
If you do not need the actual document, set this to false
to reduce bandwidth usage.
The result will be available on the .result
property of the events.
Optional
tagOptional request tag for the listener. Use to identify the request in logs.
Optional
visibilityWhether events should be sent as soon as a transaction has been committed (transaction
, default),
or only after they are available for queries (query). Note that this is on a best-effort basis,
and listeners with query
may in certain cases (notably with deferred transactions) receive events
that are not yet visible to queries.
Format of "effects", eg the resulting changes of a mutation. Currently only
mendoza
is supported, and (if set) will includeapply
andrevert
arrays in the mutation events under theeffects
property.See The mendoza docs for more info