These are chat archives for Automattic/mongoose

5th
Oct 2017
Paul "Joey" Clark
@joeytwiddle
Oct 05 2017 09:45
@jalasem Maybe just .poplate(‘author_id’)
Jemli Fathi
@jemliF
Oct 05 2017 13:04
Hey
how can I know if a field was modified in update pre/post hook ?
Jemli Fathi
@jemliF
Oct 05 2017 13:11
I am doing this to update updatedAt field:
schema.pre('update', function () {
this.update({}, {
$set: {
updatedAt: new Date()
}
});
});
Jestin Hoogeveen
@JestinHoogeveen
Oct 05 2017 19:05
Hello, I need some help. How can I get one error message from the save method instead of all validation errors?
I just want to return 1 validation error
Foncier
@Airboy
Oct 05 2017 20:47
Hey guys, anyone has already experienced the following issue since the upgrade to 4.12.0 for replica sets: Error: Illegal trailing backslash after database name