addCollection

Add a collection used for the replication with an optional collection configuration. If the collection has been added before, the previously added collection and its configuration if specified will be replaced.

If a null configuration is specified, a default empty configuration will be applied.

Return

this

Parameters

collection

the collection

config

its configuration