7fife-backend/node_modules/mongoose/lib/helpers/query/validOps.js

23 lines
348 B
JavaScript
Raw Permalink Normal View History

2024-03-07 13:01:44 +00:00
'use strict';
module.exports = Object.freeze([
// Read
'count',
'countDocuments',
'distinct',
'estimatedDocumentCount',
'find',
'findOne',
// Update
'findOneAndReplace',
'findOneAndUpdate',
'replaceOne',
'updateMany',
'updateOne',
// Delete
'deleteMany',
'deleteOne',
'findOneAndDelete',
'findOneAndRemove'
]);