File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/firestore/src/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
20
20
Constant ,
21
21
Field ,
22
22
BooleanExpr ,
23
- not ,
24
23
andFunction ,
25
24
orFunction ,
26
25
Ordering ,
@@ -61,13 +60,13 @@ export function toPipelineBooleanExpr(f: FilterInternal): BooleanExpr {
61
60
if ( f . op === Operator . EQUAL ) {
62
61
return andFunction ( field . exists ( ) , field . isNan ( ) ) ;
63
62
} else {
64
- return andFunction ( field . exists ( ) , not ( field . isNan ( ) ) ) ;
63
+ return andFunction ( field . exists ( ) , field . isNotNan ( ) ) ;
65
64
}
66
65
} else if ( isNullValue ( f . value ) ) {
67
66
if ( f . op === Operator . EQUAL ) {
68
67
return andFunction ( field . exists ( ) , field . eq ( null ) ) ;
69
68
} else {
70
- return andFunction ( field . exists ( ) , not ( field . eq ( null ) ) ) ;
69
+ return andFunction ( field . exists ( ) , field . neq ( null ) ) ;
71
70
}
72
71
} else {
73
72
// Comparison filters
@@ -124,7 +123,7 @@ export function toPipelineBooleanExpr(f: FilterInternal): BooleanExpr {
124
123
const values = value ?. arrayValue ?. values ?. map ( ( val : any ) =>
125
124
Constant . _fromProto ( val )
126
125
) ;
127
- return andFunction ( field . exists ( ) , not ( field . eqAny ( ...values ! ) ) ) ;
126
+ return andFunction ( field . exists ( ) , field . notEqAny ( ...values ! ) ) ;
128
127
}
129
128
default :
130
129
fail ( 'Unexpected operator' ) ;
You can’t perform that action at this time.
0 commit comments