Open dmcfarland opened 1 month ago
Adds contents of errInfo as additionalInfo when err thrown performing up
Example output:
"type": "Error", "message": "Could not migrate up 20241016135332-example-migration.js: Document failed validation", "stack": "MongoServerError: Document failed validation..." "migrated": [], "additionalInfo": { "failingDocumentId": "66d1826cb0fcad2724e40e14", "details": { "operatorName": "$jsonSchema", "schemaRulesNotSatisfied": [ { "operatorName": "oneOf", "schemasNotSatisfied": [ ...
npm test
Adds contents of errInfo as additionalInfo when err thrown performing up
Example output:
Checklist
npm test
passes and has 100% coverage