This seems to be an issue with mongoose versions >= 6. Downgrading Mongoose to version 5.13.8 works without a problem. Mongoose devs are apparently aware of this issue: https://github.com/Automattic/mongoose/issues/11105