Skip to content

Commit 3602303

Browse files
committed
fix names to align with docs
1 parent c027132 commit 3602303

File tree

12 files changed

+38
-47
lines changed

12 files changed

+38
-47
lines changed

generator/config/query/and.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests:
2929
- bsonType: Double
3030
qty:
3131
types:
32-
- bsonType: Int32
32+
- bsonType: Double
3333
- bsonType: Undefined
3434
sale:
3535
types:

generator/config/query/eq.yaml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: |
99
arguments:
1010
- name: value
1111
type:
12-
- any
12+
- expression
1313
tests:
1414
- name: Equals a Specified Value
1515
link: https://www.mongodb.com/docs/manual/reference/operator/query/eq/#equals-a-specified-value
@@ -123,28 +123,10 @@ tests:
123123
company:
124124
$eq: !bson_regex ^MongoDB
125125
schema:
126-
inventory:
126+
companies:
127127
_id:
128128
types:
129-
- bsonType: Number
130-
item:
131-
types:
132-
- bsonType: Document
133-
fields:
134-
name:
135-
types:
136-
- bsonType: String
137-
code:
138-
types:
139-
- bsonType: String
140-
qty:
141-
types:
142-
- bsonType: Number
143-
tags:
129+
- bsonType: Int32
130+
company:
144131
types:
145-
- bsonType: Array
146-
types:
147-
- bsonType: String
148-
- bsonType: Array
149-
types:
150-
- bsonType: String
132+
- bsonType: String

generator/config/query/exists.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tests:
2222
- 5
2323
- 15
2424
schema:
25-
inventory:
25+
inventory: &ref_0
2626
price:
2727
types:
2828
- bsonType: Double
@@ -40,16 +40,4 @@ tests:
4040
qty:
4141
$exists: true
4242
schema:
43-
spices:
44-
saffron:
45-
types:
46-
- bsonType: Number
47-
- bsonType: 'Null'
48-
cinnamon:
49-
types:
50-
- bsonType: Number
51-
- bsonType: 'Null'
52-
mustard:
53-
types:
54-
- bsonType: Number
55-
- bsonType: 'Null'
43+
inventory: *ref_0

generator/config/query/geoWithin.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests:
3131
- 0
3232
schema:
3333
places: &ref_0
34-
location:
34+
loc:
3535
types:
3636
- bsonType: Document
3737
fields:
@@ -42,7 +42,11 @@ tests:
4242
types:
4343
- bsonType: Array
4444
types:
45-
- bsonType: Double
45+
- bsonType: Array
46+
types:
47+
- bsonType: Array
48+
types:
49+
- bsonType: Double
4650
- name: Within a Big Polygon
4751
link: https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/#within-a--big--polygon
4852
pipeline:

generator/config/query/gt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tests:
1515
link: https://www.mongodb.com/docs/manual/reference/operator/query/gt/#match-document-fields
1616
pipeline:
1717
- $match:
18-
qty:
18+
quantity:
1919
$gt: 20
2020
schema:
2121
inventory:

generator/config/query/gte.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tests:
1515
link: https://www.mongodb.com/docs/manual/reference/operator/query/gte/#match-document-fields
1616
pipeline:
1717
- $match:
18-
qty:
18+
quantity:
1919
$gte: 20
2020
schema:
2121
inventory:

generator/config/query/lt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tests:
1515
link: https://www.mongodb.com/docs/manual/reference/operator/query/lt/#match-document-fields
1616
pipeline:
1717
- $match:
18-
qty:
18+
quantity:
1919
$lt: 20
2020
schema:
2121
inventory:

generator/config/query/lte.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tests:
1515
link: https://www.mongodb.com/docs/manual/reference/operator/query/lte/#match-document-fields
1616
pipeline:
1717
- $match:
18-
qty:
18+
quantity:
1919
$lte: 20
2020
schema:
2121
inventory:

generator/config/query/nor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ tests:
2929
types:
3030
- bsonType: Int32
3131
- bsonType: Undefined
32+
quantity:
33+
types:
34+
- bsonType: Int32
35+
- bsonType: Undefined
3236
sale:
3337
types:
3438
- bsonType: Boolean

generator/config/query/or.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ tests:
3030
types:
3131
- bsonType: Int32
3232
- bsonType: Undefined
33+
quantity:
34+
types:
35+
- bsonType: Int32
36+
- bsonType: Undefined
3337
sale:
3438
types:
3539
- bsonType: Boolean

generator/config/query/size.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ tests:
2626
types:
2727
- bsonType: Int32
2828
- bsonType: Undefined
29+
quantity:
30+
types:
31+
- bsonType: Int32
32+
- bsonType: Undefined
2933
sale:
3034
types:
3135
- bsonType: Boolean
36+
tags:
37+
types:
38+
- bsonType: Array
39+
types:
40+
- bsonType: String

generator/config/query/type.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ tests:
5757
link: https://www.mongodb.com/docs/manual/reference/operator/query/type/#querying-by-multiple-data-types
5858
pipeline:
5959
- $match:
60-
zipCode:
60+
classAverage:
6161
$type:
6262
- 2
6363
- 1
6464
- $match:
65-
zipCode:
65+
classAverage:
6666
$type:
6767
- string
6868
- double
@@ -111,7 +111,7 @@ tests:
111111
link: https://www.mongodb.com/docs/manual/reference/operator/query/type/#querying-by-array-type
112112
pipeline:
113113
- $match:
114-
zipCode:
114+
readings:
115115
$type:
116116
- array
117117
schema:

0 commit comments

Comments
 (0)