Server
this.changed(collection, id, fields)
Call inside the publish function. Informs the subscriber that a document in the record set has been modified.
Arguments
- collection String
-
The name of the collection that contains the changed document.
- id String
-
The changed document's ID.
- fields Object
-
The fields in the document that have changed, together with their new values. If a field is not present in
fields
it was left unchanged; if it is present infields
and has a value ofundefined
it was removed from the document. If_id
is present it is ignored.
Please login to continue.