scripts.mongo-upgrade-template.js Maven / Gradle / Ivy
The newest version!
print('Title of the upgrade operation');
// Override this variable if you use prefix
const prefix = "";
// ... your instructions goes here
// You can access a collection with
db.getCollection(`${prefix}myCollection`)