Open dottodot opened 2 years ago
I've just updated to the latest version of feathers mongoose which has update mongoose from v5 to v5 and I'm now getting this error
"Cannot populate path image because it is not in your schema. Set the strictPopulate option to false to override."
image
strictPopulate
not really sure what's causing it as image is part of my schema.
image: { type: ObjectId, ref: "image", },
I can do this to get rid of the error
mongoose.set("strictPopulate", false);
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working): feathers-mongoose@8.5.1 mongoose@6.1.7 NodeJS version: v14.17.2
Steps to reproduce
I've just updated to the latest version of feathers mongoose which has update mongoose from v5 to v5 and I'm now getting this error
"Cannot populate path
image
because it is not in your schema. Set thestrictPopulate
option to false to override."not really sure what's causing it as image is part of my schema.
I can do this to get rid of the error
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working): feathers-mongoose@8.5.1 mongoose@6.1.7 NodeJS version: v14.17.2