I am upgrading mongodb version from 3.14.4 to 4.0 I have upgraded node-mongodb-fixtures from 2.2.1 to 3.0.0 as well.
const fixture = new Fixtures({ dir: 'fixtures/all', mute: true }); fixture.connect("mongodb://localhost:27017/testDb") .then(() => fixture.unload()) .then(() => fixture.load()) .then(() => fixture.disconnect())
getting this error mongodb database name must be a string
#node-js #mongodb