Files
le-journal-d-un-podcast/node_modules/mongoose/lib/helpers/query/isOperator.js
T
2022-09-15 01:55:36 -04:00

15 lines
191 B
JavaScript

'use strict';
const specialKeys = new Set([
'$ref',
'$id',
'$db'
]);
module.exports = function isOperator(path) {
return (
path[0] === '$' &&
!specialKeys.has(path)
);
};