-
Notifications
You must be signed in to change notification settings - Fork 0
/
query_and_projection.go
60 lines (51 loc) · 1.06 KB
/
query_and_projection.go
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package operator
const (
// Comparison
Eq = "$eq"
Gt = "$gt"
Gte = "$gte"
In = "$in"
Lt = "$lt"
Lte = "$lte"
Ne = "$ne"
Nin = "$nin"
// Logical
And = "$and"
Not = "$not"
Nor = "$nor"
Or = "$or"
// Element
Exists = "$exists"
Type = "$type"
// Evaluation
Expr = "$expr"
JsonSchema = "$jsonSchema"
Mod = "$mod"
Regex = "$regex"
Text = "$text"
Where = "$where"
Search = "$search"
Language = "$language"
CaseSensitive = "$caseSensitive"
DiacriticSensitive = "$diacriticSensitive"
// Geo spatial
GeoIntersects = "$geoIntersects"
GeoWithin = "$geoWithin"
Near = "$near"
NearSphere = "$nearSphere"
// Array
All = "$all"
ElemMatch = "$elemMatch"
Size = "$size"
// Bitwise
BitsAllClear = "$bitsAllClear"
BitsAllSet = "$bitsAllSet"
BitsAnyClear = "$bitsAnyClear"
BitsAnySet = "$bitsAnySet"
// Comments
Comment = "$comment"
// Projection operators
Dollar = "$"
Meta = "$meta"
Slice = "$slice"
)