File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
packages/firestore/test/integration/api Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,30 @@ apiDescribe('Queries', (persistence: boolean) => {
748
748
}
749
749
) ;
750
750
751
+ // eslint-disable-next-line no-restricted-properties
752
+ ( isRunningAgainstEmulator ( ) ? it : it . skip ) (
753
+ 'can use != filters by document ID' ,
754
+ async ( ) => {
755
+ const testDocs = {
756
+ aa : { key : 'aa' } ,
757
+ ab : { key : 'ab' } ,
758
+ ba : { key : 'ba' } ,
759
+ bb : { key : 'bb' }
760
+ } ;
761
+ await withTestCollection ( persistence , testDocs , async coll => {
762
+ const snapshot = await coll
763
+ . where ( FieldPath . documentId ( ) , notEqualOp , 'aa' )
764
+ . get ( ) ;
765
+
766
+ expect ( toDataArray ( snapshot ) ) . to . deep . equal ( [
767
+ { key : 'ab' } ,
768
+ { key : 'ba' } ,
769
+ { key : 'bb' }
770
+ ] ) ;
771
+ } ) ;
772
+ }
773
+ ) ;
774
+
751
775
it ( 'can use array-contains filters' , async ( ) => {
752
776
const testDocs = {
753
777
a : { array : [ 42 ] } ,
You can’t perform that action at this time.
0 commit comments