Sync data from src
to target
and target
to src
. This is a convenience method for bidirectional data replication.
In other words, this code:
is equivalent to this code:
Options
options.push
+ options.pull
: Allows you to specify separate replication options for the individual replications.
Replication options such as filter
passed to sync directly will be passed to both replications. Please refer to replicate() for documentation on those options.
Example Usage: