Skip to content

Commit c2b1ee5

Browse files
committed
Add schema for first/last
1 parent b9b1d19 commit c2b1ee5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

generator/config/expression/first.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ tests:
1616
- $addFields:
1717
firstItem:
1818
$first: $items
19-
schema: '// TODO: No docs reference found'
19+
schema:
20+
collection:
21+
items:
22+
types:
23+
- bsonType: Array
24+
types:
25+
- bsonType: String

generator/config/expression/last.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ tests:
1616
- $addFields:
1717
lastItem:
1818
$last: $items
19-
schema: '// TODO: No docs reference found'
19+
schema:
20+
collection:
21+
items:
22+
types:
23+
- bsonType: Array
24+
types:
25+
- bsonType: String

0 commit comments

Comments
 (0)