These are chat archives for Automattic/mongoose

6th
Mar 2016
J
@jhyland87
Mar 06 2016 15:11 UTC
Anyone else here think that the Mongoose documentation should at least have a search feature? Other than just Google? Im trying to find something explaining the JSON response for the Model.update query.
{ ok: 1,
  nModified: 1,
  n: 1,
  lastOp: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1457276492 },
  electionId: 56998660a63d34e5006f5b69 }
Whats the n? Im guessing nModified is Number Modified, and Ok is the amount of queries that executed successfully?
is n just successful queries all together?
Joe
@astr0sl0th
Mar 06 2016 15:16 UTC
Option F
J
@jhyland87
Mar 06 2016 15:37 UTC
@chowndown Weird, I went to the homepage, hit option F, typed nModified, and nothing was found :-O
could it be because thats searches the one page?... I think so
Im new to MongoDB/Mongoose, so eventually I found it here, but still, a search feature would be handy
a real search feature, not a browser search
Joe
@astr0sl0th
Mar 06 2016 15:42 UTC
@jhyland87 It was meant to be a tad tongue and cheek ;)
J
@jhyland87
Mar 06 2016 15:42 UTC
Same
J
@jhyland87
Mar 06 2016 15:57 UTC
Is there any way to get the updated document(s) _id from the post update middleware function?
I can get it from the save and the find__AndUpdates, but not update