Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generator/config/query/and.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tests:
- bsonType: Double
qty:
types:
- bsonType: Int32
- bsonType: Double
- bsonType: Undefined
sale:
types:
Expand Down
28 changes: 5 additions & 23 deletions generator/config/query/eq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: |
arguments:
- name: value
type:
- any
- expression
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this was any previously, but happy to revert if expression is incorrect here.

tests:
- name: Equals a Specified Value
link: https://www.mongodb.com/docs/manual/reference/operator/query/eq/#equals-a-specified-value
Expand Down Expand Up @@ -123,28 +123,10 @@ tests:
company:
$eq: !bson_regex ^MongoDB
schema:
inventory:
companies:
_id:
types:
- bsonType: Number
item:
types:
- bsonType: Document
fields:
name:
types:
- bsonType: String
code:
types:
- bsonType: String
qty:
types:
- bsonType: Number
tags:
- bsonType: Int32
company:
types:
- bsonType: Array
types:
- bsonType: String
- bsonType: Array
types:
- bsonType: String
- bsonType: String
16 changes: 2 additions & 14 deletions generator/config/query/exists.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tests:
- 5
- 15
schema:
inventory:
inventory: &ref_0
price:
types:
- bsonType: Double
Expand All @@ -40,16 +40,4 @@ tests:
qty:
$exists: true
schema:
spices:
saffron:
types:
- bsonType: Number
- bsonType: 'Null'
cinnamon:
types:
- bsonType: Number
- bsonType: 'Null'
mustard:
types:
- bsonType: Number
- bsonType: 'Null'
inventory: *ref_0
8 changes: 6 additions & 2 deletions generator/config/query/geoWithin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tests:
- 0
schema:
places: &ref_0
location:
loc:
types:
- bsonType: Document
fields:
Expand All @@ -42,7 +42,11 @@ tests:
types:
- bsonType: Array
types:
- bsonType: Double
- bsonType: Array
types:
- bsonType: Array
types:
- bsonType: Double
- name: Within a Big Polygon
link: https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/#within-a--big--polygon
pipeline:
Expand Down
2 changes: 1 addition & 1 deletion generator/config/query/gt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/gt/#match-document-fields
pipeline:
- $match:
qty:
quantity:
$gt: 20
schema:
inventory:
Expand Down
2 changes: 1 addition & 1 deletion generator/config/query/gte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/gte/#match-document-fields
pipeline:
- $match:
qty:
quantity:
$gte: 20
schema:
inventory:
Expand Down
2 changes: 1 addition & 1 deletion generator/config/query/lt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/lt/#match-document-fields
pipeline:
- $match:
qty:
quantity:
$lt: 20
schema:
inventory:
Expand Down
2 changes: 1 addition & 1 deletion generator/config/query/lte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/lte/#match-document-fields
pipeline:
- $match:
qty:
quantity:
$lte: 20
schema:
inventory:
Expand Down
4 changes: 4 additions & 0 deletions generator/config/query/nor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ tests:
types:
- bsonType: Int32
- bsonType: Undefined
quantity:
types:
- bsonType: Int32
- bsonType: Undefined
sale:
types:
- bsonType: Boolean
Expand Down
4 changes: 4 additions & 0 deletions generator/config/query/or.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ tests:
types:
- bsonType: Int32
- bsonType: Undefined
quantity:
types:
- bsonType: Int32
- bsonType: Undefined
sale:
types:
- bsonType: Boolean
Expand Down
9 changes: 9 additions & 0 deletions generator/config/query/size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ tests:
types:
- bsonType: Int32
- bsonType: Undefined
quantity:
types:
- bsonType: Int32
- bsonType: Undefined
sale:
types:
- bsonType: Boolean
tags:
types:
- bsonType: Array
types:
- bsonType: String
6 changes: 3 additions & 3 deletions generator/config/query/type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/type/#querying-by-multiple-data-types
pipeline:
- $match:
zipCode:
classAverage:
$type:
- 2
- 1
- $match:
zipCode:
classAverage:
$type:
- string
- double
Expand Down Expand Up @@ -111,7 +111,7 @@ tests:
link: https://www.mongodb.com/docs/manual/reference/operator/query/type/#querying-by-array-type
pipeline:
- $match:
zipCode:
readings:
$type:
- array
schema:
Expand Down
Loading