These are chat archives for Automattic/mongoose

30th
Sep 2016
janyk
@janyk
Sep 30 2016 00:28
Hey, just a question about getters/transforms in mongoose models, currently they don't handle async very well, such that if I have a promise that needs to resolve in the getter, the document returned is full of promises and not the actual fields. So three questions I suppose: how would you guys try and handle this? and, is there a reason maybe it wasn't implemented to handle async transformations? Or third, maybe it does and I just don't know how to use it properly?
janyk
@janyk
Sep 30 2016 01:54
This message was deleted