|
15 | 15 | * limitations under the License.
|
16 | 16 | */
|
17 | 17 |
|
18 |
| -import {Document} from "../model/document"; |
19 |
| -import {DocumentKey} from "../model/document_key"; |
20 |
| -import {FieldPath} from "../model/path"; |
| 18 | +import { Document } from '../model/document'; |
| 19 | +import { DocumentKey } from '../model/document_key'; |
| 20 | +import { FieldPath } from '../model/path'; |
21 | 21 | import {
|
22 | 22 | arrayValueContains,
|
23 | 23 | canonicalId,
|
24 | 24 | isArray,
|
25 | 25 | isReferenceValue,
|
26 | 26 | typeOrder,
|
27 |
| - valueCompare, valueEquals |
28 |
| -} from "../model/values"; |
29 |
| -import {Value as ProtoValue} from "../protos/firestore_proto_api"; |
30 |
| -import {debugAssert, fail} from "../util/assert"; |
| 27 | + valueCompare, |
| 28 | + valueEquals |
| 29 | +} from '../model/values'; |
| 30 | +import { Value as ProtoValue } from '../protos/firestore_proto_api'; |
| 31 | +import { debugAssert, fail } from '../util/assert'; |
31 | 32 |
|
32 | 33 | // The operator of a FieldFilter
|
33 | 34 | export const enum Operator {
|
@@ -123,12 +124,12 @@ export class FieldFilter extends Filter {
|
123 | 124 | debugAssert(
|
124 | 125 | isArray(value),
|
125 | 126 | `Comparing on key with ${op.toString()}` +
|
126 |
| - ', but filter value not an ArrayValue' |
| 127 | + ', but filter value not an ArrayValue' |
127 | 128 | );
|
128 | 129 | debugAssert(
|
129 | 130 | (value.arrayValue.values || []).every(elem => isReferenceValue(elem)),
|
130 | 131 | `Comparing on key with ${op.toString()}` +
|
131 |
| - ', but an array value was not a RefValue' |
| 132 | + ', but an array value was not a RefValue' |
132 | 133 | );
|
133 | 134 |
|
134 | 135 | return op === Operator.IN
|
@@ -462,7 +463,7 @@ function extractDocumentKeysFromArrayValue(
|
462 | 463 | debugAssert(
|
463 | 464 | isReferenceValue(v),
|
464 | 465 | `Comparing on key with ${op.toString()}, but an array value was not ` +
|
465 |
| - `a ReferenceValue` |
| 466 | + `a ReferenceValue` |
466 | 467 | );
|
467 | 468 | return DocumentKey.fromName(v.referenceValue);
|
468 | 469 | });
|
|
0 commit comments