You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
502 B
JavaScript
28 lines
502 B
JavaScript
'use strict';
|
|
function getDefaultBulkwriteResult() {
|
|
return {
|
|
result: {
|
|
ok: 1,
|
|
writeErrors: [],
|
|
writeConcernErrors: [],
|
|
insertedIds: [],
|
|
nInserted: 0,
|
|
nUpserted: 0,
|
|
nMatched: 0,
|
|
nModified: 0,
|
|
nRemoved: 0,
|
|
upserted: []
|
|
},
|
|
insertedCount: 0,
|
|
matchedCount: 0,
|
|
modifiedCount: 0,
|
|
deletedCount: 0,
|
|
upsertedCount: 0,
|
|
upsertedIds: {},
|
|
insertedIds: {},
|
|
n: 0
|
|
};
|
|
}
|
|
|
|
module.exports = getDefaultBulkwriteResult;
|