File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
packages/firestore/src/protos Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license
3
- * Copyright 2017 Google Inc.
3
+ * Copyright 2019 Google Inc.
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -35,7 +35,9 @@ export declare type FieldFilterOp =
35
35
| 'GREATER_THAN'
36
36
| 'GREATER_THAN_OR_EQUAL'
37
37
| 'EQUAL'
38
- | 'ARRAY_CONTAINS' ;
38
+ | 'ARRAY_CONTAINS'
39
+ | 'IN'
40
+ | 'ARRAY_CONTAINS_ANY' ;
39
41
export interface IFieldFilterOpEnum {
40
42
OPERATOR_UNSPECIFIED : FieldFilterOp ;
41
43
LESS_THAN : FieldFilterOp ;
@@ -44,6 +46,8 @@ export interface IFieldFilterOpEnum {
44
46
GREATER_THAN_OR_EQUAL : FieldFilterOp ;
45
47
EQUAL : FieldFilterOp ;
46
48
ARRAY_CONTAINS : FieldFilterOp ;
49
+ IN : FieldFilterOp ;
50
+ ARRAY_CONTAINS_ANY : FieldFilterOp ;
47
51
values ( ) : Array < FieldFilterOp > ;
48
52
}
49
53
export declare const FieldFilterOpEnum : IFieldFilterOpEnum ;
Original file line number Diff line number Diff line change 1
- // Copyright 2018 Google LLC.
1
+ // Copyright 2019 Google LLC.
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -103,6 +103,14 @@ message StructuredQuery {
103
103
104
104
// Contains. Requires that the field is an array.
105
105
ARRAY_CONTAINS = 7 ;
106
+
107
+ // In. Requires that `value` is a non-empty ArrayValue with at most 10
108
+ // values.
109
+ IN = 8 ;
110
+
111
+ // Contains any. Requires that the field is an array and
112
+ // `value` is a non-empty ArrayValue with at most 10 values.
113
+ ARRAY_CONTAINS_ANY = 9 ;
106
114
}
107
115
108
116
// The field to filter by.
You can’t perform that action at this time.
0 commit comments