We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14eae66 commit 036192bCopy full SHA for 036192b
packages/cloud_firestore/cloud_firestore_web/lib/src/pipeline_expression_parser_web.dart
@@ -317,7 +317,10 @@ class PipelineExpressionParserWeb {
317
return result;
318
case 'not':
319
final expr = argsMap[_kExpression] as Map<String, dynamic>;
320
- final boolExpr = toBooleanExpression(expr) as JSAny?;
+ final boolExpr = toBooleanExpression(expr);
321
+ if (boolExpr == null) {
322
+ throw UnsupportedError('not requires a boolean expression');
323
+ }
324
return _pipelines.not(boolExpr);
325
case 'exists':
326
return _pipelines.exists(_expr(argsMap, _kExpression));
0 commit comments