Skip to content

Commit 943deb1

Browse files
committed
chore: update a few schemas
1 parent 14623eb commit 943deb1

File tree

3 files changed

+91
-43
lines changed

3 files changed

+91
-43
lines changed

generator/config/query/type.yaml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,56 @@ tests:
9191
$type:
9292
- maxKey
9393
schema:
94-
addressBook:
94+
restaurants:
9595
_id:
9696
types:
9797
- bsonType: Number
9898
address:
99+
types:
100+
- bsonType: Document
101+
fields:
102+
building:
103+
types:
104+
- bsonType: String
105+
coord:
106+
types:
107+
- bsonType: Array
108+
types:
109+
- bsonType: Number
110+
street:
111+
types:
112+
- bsonType: String
113+
zipcode:
114+
types:
115+
- bsonType: String
116+
borough:
99117
types:
100118
- bsonType: String
101-
zipCode:
119+
cuisine:
102120
types:
103121
- bsonType: String
104-
- bsonType: Number
105-
- bsonType: Long
106-
- bsonType: Int32
122+
grades:
123+
types:
107124
- bsonType: Array
108125
types:
109-
- bsonType: String
126+
- bsonType: Document
127+
fields:
128+
date:
129+
types:
130+
- bsonType: Date
131+
grade:
132+
types:
133+
- bsonType: String
134+
- bsonType: MinKey
135+
score:
136+
types:
137+
- bsonType: Number
138+
name:
139+
types:
140+
- bsonType: String
141+
restaurant_id:
142+
types:
143+
- bsonType: String
110144
- name: Querying by Array Type
111145
link: https://www.mongodb.com/docs/manual/reference/operator/query/type/#querying-by-array-type
112146
pipeline:

generator/config/stage/lookup.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,19 +166,18 @@ tests:
166166
newRoot: $date
167167
as: holidays
168168
schema:
169-
orders:
169+
absences:
170170
_id:
171171
types:
172172
- bsonType: Number
173-
item:
173+
student:
174174
types:
175175
- bsonType: String
176-
price:
176+
sickdays:
177177
types:
178-
- bsonType: Number
179-
quantity:
180-
types:
181-
- bsonType: Number
178+
- bsonType: Array
179+
types:
180+
- bsonType: Date
182181
- name: Perform a Concise Correlated Subquery with $lookup
183182
link: https://www.mongodb.com/docs/manual/reference/operator/aggregation/lookup/#perform-a-concise-correlated-subquery-with--lookup
184183
pipeline:

generator/config/stage/redact.yaml

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -85,45 +85,60 @@ tests:
8585
then: $$PRUNE
8686
else: $$DESCEND
8787
schema:
88-
forecasts:
88+
accounts:
8989
_id:
9090
types:
9191
- bsonType: Number
92-
title:
93-
types:
94-
- bsonType: String
95-
tags:
96-
types:
97-
- bsonType: Array
98-
types:
99-
- bsonType: String
100-
year:
92+
level:
10193
types:
10294
- bsonType: Number
103-
subsections:
95+
acct_id:
10496
types:
105-
- bsonType: Array
106-
types:
107-
- bsonType: Document
108-
fields:
109-
subtitle:
110-
types:
111-
- bsonType: String
112-
tags:
113-
types:
114-
- bsonType: Array
115-
types:
116-
- bsonType: String
117-
content:
97+
- bsonType: String
98+
cc:
99+
types:
100+
- bsonType: Document
101+
fields:
102+
level:
103+
types:
104+
- bsonType: Number
105+
type:
106+
types:
107+
- bsonType: String
108+
num:
109+
types:
110+
- bsonType: Number
111+
exp_date:
112+
types:
113+
- bsonType: Date
114+
billing_addr:
115+
types:
116+
- bsonType: Document
117+
fields:
118+
level:
119+
types:
120+
- bsonType: Number
121+
addr1:
122+
types:
123+
- bsonType: String
124+
city:
125+
types:
126+
- bsonType: String
127+
shipping_addr:
128+
types:
129+
- bsonType: Array
118130
types:
119-
- bsonType: String
120131
- bsonType: Document
121132
fields:
122-
text:
133+
level:
134+
types:
135+
- bsonType: Number
136+
addr1:
123137
types:
124138
- bsonType: String
125-
tags:
139+
city:
126140
types:
127-
- bsonType: Array
128-
types:
129-
- bsonType: String
141+
- bsonType: String
142+
status:
143+
types:
144+
- bsonType: String

0 commit comments

Comments
 (0)