These are chat archives for Automattic/mongoose

8th
Jun 2016
Brandon Taylor
@alsoicode
Jun 08 2016 00:36
This message was deleted
Vasiliy Onoprienko
@Regnised
Jun 08 2016 06:34

Hello, who can explain me, why i got in webstorm console this result:
[ model {
'$':
InternalCache {
strictMode: true,
selected: [Object],
shardval: undefined,
saveError: undefined,
validationError: undefined,
adhocPaths: undefined,
removing: undefined,
inserting: undefined,
version: undefined,
getters: {},
_id: undefined,
populate: undefined,
populated: undefined,
wasPopulated: false,
scope: undefined,
activePaths: [Object],
ownerDocument: undefined,
fullPath: undefined,
emitter: [Object] },
isNew: false,
errors: undefined,
_doc: { members: [Object], _id: [Object] },
'$
original_save': { [Function] numAsyncPres: 1 },
save: [Function: wrappedPointCut],
_pres: { '$original_save': [Object] },
_posts: { '$
original_save': [] } },
model {

'$':

real result in _doc field... early i get only array with {members: .....

Vasiliy Onoprienko
@Regnised
Jun 08 2016 07:26
THNKS, I used console.dir for showing query results
David Baldwynn
@whitef0x0
Jun 08 2016 22:13
whats the code that produces this @Regnised ?