Skip to content

Instantly share code, notes, and snippets.

@gask
gask / gist:cb1d3dfa25b31d3ef0a406a2a12724a0
Created February 9, 2021 16:23
Repro script mongoose issue #9909
const mongoose = require('mongoose');
mongoose.set('debug', true);
const connectionString = ``;
const { Schema } = mongoose;
run().then(() => console.log('done')).catch(error => console.error(error.stack));
async function run() {
await mongoose.connect(connectionString);