Release 4.4.0
NOTE: This release has breaking changes for the MongoDB Mobile Sync Beta
- Mobile sync now uses compact change streams, which should save on network usage for collections with large documents and frequent updates that only affect a few fields.
- When calling
configure
on aSync
, theChangeEventListener
will no longer guarantee that theChangeEvent
will have a non-null result forgetFullDocument()
if theOperationType
isUPDATE
. - When calling
configure
on aSync
, the signature for ConflictHandler#resolveConflict has changed:- It now returns a
ConflictResolution
. See the documentation for ConflictResolution for more information. - The type of the remote event in
resolveConflict
is now aCompactChangeEvent
, to reflect the type of event received from the server. This means that when the remote event is anUPDATE
,getFullDocument()
will always returnnull
.
- It now returns a
- When calling
- It is now possible to add a listener/callback on the stream returned by RemoteMongoCollection#watch and RemoteMongoCollection#watchCompact.