File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/cloud_firestore/cloud_firestore_web/lib/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,9 @@ class PipelineExpressionParserWeb {
281281 }
282282 return result;
283283 case 'not' :
284- return _pipelines.not (_expr (argsMap, _kExpression));
284+ final expr = argsMap[_kExpression] as Map <String , dynamic >;
285+ final boolExpr = toBooleanExpression (expr) as JSAny ;
286+ return _pipelines.not (boolExpr);
285287 case 'exists' :
286288 return _pipelines.exists (_expr (argsMap, _kExpression));
287289 case 'is_absent' :
@@ -336,7 +338,12 @@ class PipelineExpressionParserWeb {
336338 case 'filter' :
337339 return _buildFilterExpression (argsMap);
338340 default :
339- return null ;
341+ throw FirebaseException (
342+ plugin: 'cloud_firestore' ,
343+ code: 'unsupported-boolean-expression' ,
344+ message: "The boolean expression '$name ' is not supported on the web "
345+ 'platform. The Firebase JS SDK may not expose this expression.' ,
346+ );
340347 }
341348 }
342349
You can’t perform that action at this time.
0 commit comments