These are chat archives for Automattic/mongoose

24th
Jan 2016
J
@jhyland87
Jan 24 2016 03:44
But I can get the populate feature working if the models are local.. like so
J
@jhyland87
Jan 24 2016 16:33
@vkarpov15 I posted something on SO, they were able to help:
db386
@db386
Jan 24 2016 19:47
I'm hoping someone could help me out here, been spending way too long trying to figure out how to take the returned docs from a save query and then turning that into a string in my node app
I've tried toObject and chaining lean(), toObject() doesn't have an effect and lean() doesn't appear to work on .save queries
I can get this working on a find query, but I have no idea how to grab the documents in a save query
I'm trying to capture the ObjectID after logging someone in via websocket