lihaibh / ditto

NPM library that helps managing MongoDB snapshots easily and efficiently
https://www.npmjs.com/package/mongodb-snapshot
MIT License
48 stars 6 forks source link

feat: allow includeCollections option in constructor #36

Open 10kc-tenzin-mahabir opened 1 year ago

10kc-tenzin-mahabir commented 1 year ago

Added includeCollections option in constructor to be able to specify which collections of the database will be included in the snapshots

lihaibh commented 1 year ago

Thank you for the contribution. You can already do it, using 'collections' property. take a look here: https://github.com/lihaibh/ditto/blob/master/src/connectors/Connector.ts

you can filter collections either on your target connector or on your source connector, or both.