-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.cjs
31 lines (29 loc) · 1.28 KB
/
index.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
/**
* Collection of query operators for Firestore queries.
*
* @typedef {Object} QueryOperators
* @property {string} lessThan - Represents the less than operator (`<`).
* @property {string} lessThanOrEqualTo - Represents the less than or equal to operator (`<=`).
* @property {string} equalTo - Represents the equal to operator (`==`).
* @property {string} greaterThan - Represents the greater than operator (`>`).
* @property {string} greaterThanOrEqualTo - Represents the greater than or equal to operator (`>=`).
* @property {string} notEqualTo - Represents the not equal to operator (`!=`).
* @property {string} arrayContains - Represents the array contains operator (`array-contains`).
* @property {string} arrayContainsAny - Represents the array contains any operator (`array-contains-any`).
* @property {string} in - Represents the "in" operator (`in`).
* @property {string} notIn - Represents the not in operator (`not-in`).
*/
const QueryOperators = Object.freeze({
lessThan: '<',
lessThanOrEqualTo: '<=',
equalTo: '==',
greaterThan: '>',
greaterThanOrEqualTo: '>=',
notEqualTo: '!=',
arrayContains: 'array-contains',
arrayContainsAny: 'array-contains-any',
in:'in',
notIn: 'not-in'
});
exports.QueryOperators = QueryOperators;