Skip to content

Commit ac33b49

Browse files
author
Brian Chen
authored
Merge 8822994 into 2bc2621
2 parents 2bc2621 + 8822994 commit ac33b49

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

packages/firestore/src/protos/firestore_proto_api.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,15 @@ export declare const TargetChangeTargetChangeTypeEnum: ITargetChangeTargetChange
126126
export declare type UnaryFilterOp =
127127
| 'OPERATOR_UNSPECIFIED'
128128
| 'IS_NAN'
129-
| 'IS_NULL';
129+
| 'IS_NULL'
130+
| 'IS_NOT_NAN'
131+
| 'IS_NOT_NULL';
130132
export interface IUnaryFilterOpEnum {
131133
OPERATOR_UNSPECIFIED: UnaryFilterOp;
132134
IS_NAN: UnaryFilterOp;
133135
IS_NULL: UnaryFilterOp;
136+
IS_NOT_NAN: UnaryFilterOp;
137+
IS_NOT_NULL: UnaryFilterOp;
134138
values(): UnaryFilterOp[];
135139
}
136140
export declare const UnaryFilterOpEnum: IUnaryFilterOpEnum;

packages/firestore/src/protos/google/firestore/v1/query.proto

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,27 @@ message StructuredQuery {
172172
// Unspecified. This value must not be used.
173173
OPERATOR_UNSPECIFIED = 0;
174174

175-
// Test if a field is equal to NaN.
175+
// The given `field` is equal to `NaN`.
176176
IS_NAN = 2;
177177

178-
// Test if an exprestion evaluates to Null.
178+
// The given `field` is equal to `NULL`.
179179
IS_NULL = 3;
180+
181+
// The given `field` is not equal to `NaN`.
182+
//
183+
// Requires:
184+
//
185+
// * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
186+
// * That `field` comes first in the `order_by`.
187+
IS_NOT_NAN = 4;
188+
189+
// The given `field` is not equal to `NULL`.
190+
//
191+
// Requires:
192+
//
193+
// * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
194+
// * That `field` comes first in the `order_by`.
195+
IS_NOT_NULL = 5;
180196
}
181197

182198
// The unary operator to apply.

0 commit comments

Comments
 (0)