You didn't encounter typescript's annoying type errors when using mongoose models? I'm just having the problem. I created a model and called for let modelRecord = MyModel.create({ data }). Then when i tried to access some data from there like this modelRecord.data.somedata there typerrors like Property not defined in type Document stuff like that
You didn't encounter typescript's annoying type errors when using mongoose models? I'm just having the problem. I created a model and called for
let modelRecord = MyModel.create({ data })
. Then when i tried to access some data from there like thismodelRecord.data.somedata
there typerrors likeProperty not defined in type Document
stuff like thatCan we see a more clear example of the code giving you issue?