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.

Return

this

Parameters

collection

the collection

config

its configuration