addCollections

Add multiple collections used for the replication with an optional shared collection configuration. If any of the collections have been added before, the previously added collections and their configuration if specified will be replaced. Adding an empty collection array is a no-op.

Return

this

Parameters

collections

a collection of Collections

config

the configuration to be applied to all of the collections