File tree Expand file tree Collapse file tree 11 files changed +40
-99
lines changed Expand file tree Collapse file tree 11 files changed +40
-99
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,17 @@ tests:
2323 - price :
2424 $exists : true
2525 schema :
26- inventory :
26+ inventory : &ref_0
2727 price :
2828 types :
2929 - bsonType : Double
30+ qty :
31+ types :
32+ - bsonType : Int32
33+ - bsonType : Undefined
34+ sale :
35+ types :
36+ - bsonType : Boolean
3037 - name : AND Queries With Multiple Expressions Specifying the Same Operator
3138 link : https://www.mongodb.com/docs/manual/reference/operator/query/and/#and-queries-with-multiple-expressions-specifying-the-same-operator
3239 pipeline :
@@ -42,13 +49,4 @@ tests:
4249 - price :
4350 $lt : 5
4451 schema :
45- inventory :
46- price :
47- types :
48- - bsonType : Double
49- qty :
50- types :
51- - bsonType : Int32
52- sale :
53- types :
54- - bsonType : Boolean
52+ inventory : *ref_0
Original file line number Diff line number Diff line change @@ -23,10 +23,16 @@ tests:
2323 - 15
2424 schema :
2525 inventory :
26+ price :
27+ types :
28+ - bsonType : Double
2629 qty :
2730 types :
2831 - bsonType : Int32
2932 - bsonType : Undefined
33+ sale :
34+ types :
35+ - bsonType : Boolean
3036 - name : Null Values
3137 link : https://www.mongodb.com/docs/manual/reference/operator/query/exists/#null-values
3238 pipeline :
Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ tests:
5454 - 0.75
5555 - 5
5656 schema :
57- monthlyBudget :
57+ supplies :
5858 _id :
5959 types :
6060 - bsonType : Number
61- category :
61+ item :
6262 types :
6363 - bsonType : String
64- budget :
64+ qty :
6565 types :
66- - bsonType : Number
67- spent :
66+ - bsonType : Int32
67+ price :
6868 types :
69- - bsonType : Number
69+ - bsonType : Decimal128
Original file line number Diff line number Diff line change 3030 - - 0
3131 - 0
3232 schema :
33- places :
33+ places : &ref_0
3434 loc :
3535 types :
3636 - bsonType : Document
@@ -73,20 +73,4 @@ tests:
7373 properties :
7474 name : urn:x-mongodb:crs:strictwinding:EPSG:4326
7575 schema :
76- places :
77- loc :
78- types :
79- - bsonType : Document
80- fields :
81- type :
82- types :
83- - bsonType : String
84- coordinates :
85- types :
86- - bsonType : Array
87- types :
88- - bsonType : Array
89- types :
90- - bsonType : Array
91- types :
92- - bsonType : Double
76+ places : *ref_0
Original file line number Diff line number Diff line change 3030 - - 0
3131 - 0
3232 schema :
33- places :
34- loc :
33+ places : &ref_0
34+ location :
3535 types :
3636 - bsonType : Document
3737 fields :
@@ -42,11 +42,7 @@ tests:
4242 types :
4343 - bsonType : Array
4444 types :
45- - bsonType : Array
46- types :
47- - bsonType : Array
48- types :
49- - bsonType : Double
45+ - bsonType : Double
5046 - name : Within a Big Polygon
5147 link : https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/#within-a--big--polygon
5248 pipeline :
@@ -73,20 +69,4 @@ tests:
7369 properties :
7470 name : urn:x-mongodb:crs:strictwinding:EPSG:4326
7571 schema :
76- places :
77- loc :
78- types :
79- - bsonType : Document
80- fields :
81- type :
82- types :
83- - bsonType : String
84- coordinates :
85- types :
86- - bsonType : Array
87- types :
88- - bsonType : Array
89- types :
90- - bsonType : Array
91- types :
92- - bsonType : Double
72+ places : *ref_0
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ tests:
2121 - price : 1.99
2222 - sale : true
2323 schema :
24- inventory :
24+ inventory : &ref_0
2525 price :
2626 types :
2727 - bsonType : Double
2828 qty :
2929 types :
3030 - bsonType : Int32
31+ - bsonType : Undefined
3132 sale :
3233 types :
3334 - bsonType : Boolean
@@ -41,16 +42,7 @@ tests:
4142 $lt : 20
4243 - sale : true
4344 schema :
44- inventory :
45- price :
46- types :
47- - bsonType : Double
48- qty :
49- types :
50- - bsonType : Int32
51- sale :
52- types :
53- - bsonType : Boolean
45+ inventory : *ref_0
5446 - name : $nor and $exists
5547 link : https://www.mongodb.com/docs/manual/reference/operator/query/nor/#-nor-and--exists
5648 pipeline :
@@ -63,13 +55,4 @@ tests:
6355 - sale :
6456 $exists : false
6557 schema :
66- inventory :
67- price :
68- types :
69- - bsonType : Double
70- qty :
71- types :
72- - bsonType : Int32
73- sale :
74- types :
75- - bsonType : Boolean
58+ inventory : *ref_0
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ tests:
1919 $not :
2020 $gt : 1.99
2121 schema :
22- inventory :
22+ inventory : &ref_0
2323 price :
2424 types :
2525 - bsonType : Double
2626 qty :
2727 types :
2828 - bsonType : Int32
29+ - bsonType : Undefined
2930 sale :
3031 types :
3132 - bsonType : Boolean
@@ -36,13 +37,4 @@ tests:
3637 price :
3738 $not : !bson_regex ^p.*
3839 schema :
39- inventory :
40- price :
41- types :
42- - bsonType : Double
43- qty :
44- types :
45- - bsonType : Int32
46- sale :
47- types :
48- - bsonType : Boolean
40+ inventory : *ref_0
Original file line number Diff line number Diff line change 2929 qty :
3030 types :
3131 - bsonType : Int32
32+ - bsonType : Undefined
3233 sale :
3334 types :
3435 - bsonType : Boolean
Original file line number Diff line number Diff line change 2121 $sampleRate : 0.33
2222 - $count : numMatches
2323 schema :
24- collection :
24+ TestCollection :
2525 _id :
2626 types :
2727 - bsonType : ObjectId
Original file line number Diff line number Diff line change 2525 qty :
2626 types :
2727 - bsonType : Int32
28+ - bsonType : Undefined
2829 sale :
2930 types :
3031 - bsonType : Boolean
You can’t perform that action at this time.
0 commit comments