I am using: koajs, co-monk (mongodb wrapper)
I have the following insert operation:
res = yield sessions.insert({
value: 1
});
console.log(res);
It spits out the object in the console:
{ "_id" : ObjectId("560ac28ff13858145218f259"), "value" : 1 }
The documentation states that it should return a WriteResult
as stated here.
What have I misunderstood here? I suppose that co-monk
has something to do with this?