{"size": 181, "ext": "js", "max_stars_repo_path": "node_modules/mongoose/lib/helpers/query/isOperator.js", "max_stars_repo_name": "Zd092718/workouttracker", "max_stars_repo_stars_event_min_datetime": "2015-03-24T17:10:34.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T16:42:09.000Z", "max_issues_repo_path": "node_modules/mongoose/lib/helpers/query/isOperator.js", "max_issues_repo_name": "Zd092718/workouttracker", "max_issues_repo_issues_event_min_datetime": "2015-03-24T17:41:13.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T21:21:39.000Z", "max_forks_repo_path": "node_modules/mongoose/lib/helpers/query/isOperator.js", "max_forks_repo_name": "Zd092718/workouttracker", "max_forks_repo_forks_event_min_datetime": "2015-03-25T05:33:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T18:25:38.000Z"}
{"max_stars_count": 20222, "max_issues_count": 8434, "max_forks_count": 3783, "avg_line_length": 16.4545454545, "max_line_length": 56, "alphanum_fraction": 0.6132596685}
'use strict';

const specialKeys = new Set([
  '$ref',
  '$id',
  '$db'
]);

module.exports = function isOperator(path) {
  return path.startsWith('$') && !specialKeys.has(path);
};