Module to prevent MongoDB injections by catching operators in objects where keys start with $
- Description:
Module to prevent MongoDB injections by catching operators in objects where keys start with $
- Source:
Methods
(inner) recursiveDollarSearch(objectToTest) → {bool}
- Description:
Test value recursively if any key starts with $ signText
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
objectToTest |
any | value to check for $ keys |
Returns:
if any key started with $ or not
- Type
- bool