Closed matthijssm closed 2 years ago
Nevermind found the problem. I was using a model as a ref instead of a string.
It was
band: { type: Types.ObjectId, ref: Band},
but it should be
band: { type: Types.ObjectId, ref: Band.modelName },
Awesome great to hear! Anything that could've made debugging easier?
Hi, while running the script it fails on this TypeError. Do you have an idea where this issue might come from?
I'm running this lib on the latest version
9.0.0
with mongoose6.2.1