getDefaultBulkwriteResult.js 502 B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. function getDefaultBulkwriteResult() {
  3. return {
  4. result: {
  5. ok: 1,
  6. writeErrors: [],
  7. writeConcernErrors: [],
  8. insertedIds: [],
  9. nInserted: 0,
  10. nUpserted: 0,
  11. nMatched: 0,
  12. nModified: 0,
  13. nRemoved: 0,
  14. upserted: []
  15. },
  16. insertedCount: 0,
  17. matchedCount: 0,
  18. modifiedCount: 0,
  19. deletedCount: 0,
  20. upsertedCount: 0,
  21. upsertedIds: {},
  22. insertedIds: {},
  23. n: 0
  24. };
  25. }
  26. module.exports = getDefaultBulkwriteResult;