These are chat archives for Automattic/mongoose

30th
Jan 2017
Starless-Sky
@Starless-Sky
Jan 30 2017 10:03
hi. I have a problem with mongoose. first I create a regular JS object that is the same schema model. (this object has nested object), then I pass it to newly created model (like let myModel = new Model(obj); ). but after inspecting the newly created model, some of its properties are missing. The missing property is an nested object itself.
nacq
@nacq
Jan 30 2017 12:30
Hello all! noob question, pre save hook occurs after or before model validations?