These are chat archives for Automattic/mongoose

5th
Apr 2017
Mika Fischer
@mika-fischer
Apr 05 2017 13:15
Does anyone know of a way to get the model name in a schema post middleware, especially when using .lean()? Without .lean() I'm using doc.constructor.modelName but that is obviously unavailable with .lean()...