Skip to content

Commit 54ee383

Browse files
author
Brian Chen
authored
Update protos to include IN and ARRAY_CONTAINS_ANY (#1838)
1 parent f701260 commit 54ee383

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google Inc.
3+
* Copyright 2019 Google Inc.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -35,7 +35,9 @@ export declare type FieldFilterOp =
3535
| 'GREATER_THAN'
3636
| 'GREATER_THAN_OR_EQUAL'
3737
| 'EQUAL'
38-
| 'ARRAY_CONTAINS';
38+
| 'ARRAY_CONTAINS'
39+
| 'IN'
40+
| 'ARRAY_CONTAINS_ANY';
3941
export interface IFieldFilterOpEnum {
4042
OPERATOR_UNSPECIFIED: FieldFilterOp;
4143
LESS_THAN: FieldFilterOp;
@@ -44,6 +46,8 @@ export interface IFieldFilterOpEnum {
4446
GREATER_THAN_OR_EQUAL: FieldFilterOp;
4547
EQUAL: FieldFilterOp;
4648
ARRAY_CONTAINS: FieldFilterOp;
49+
IN: FieldFilterOp;
50+
ARRAY_CONTAINS_ANY: FieldFilterOp;
4751
values(): Array<FieldFilterOp>;
4852
}
4953
export declare const FieldFilterOpEnum: IFieldFilterOpEnum;

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018 Google LLC.
1+
// Copyright 2019 Google LLC.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -103,6 +103,14 @@ message StructuredQuery {
103103

104104
// Contains. Requires that the field is an array.
105105
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;
106114
}
107115

108116
// The field to filter by.

0 commit comments

Comments
 (0)