2 — BadValue
queryconfiguration
A command argument or query operator has an invalid value
What is happening?
BadValue indicates that a parameter, option, or field value passed to a MongoDB command or query is invalid. This can happen with malformed query filters, invalid aggregation expressions, unsupported option combinations, or type mismatches in command arguments.
Common causes
- Invalid type passed to a query operator (e.g. $gt with a non-comparable type)
- Malformed aggregation pipeline stage
- Unsupported or deprecated option passed to a command
- Invalid regular expression syntax
- Incorrect field path expression in aggregation