Skip to content

Commit e012ae6

Browse files
committed
Fixup filterQuery types test
This was trying to query on a field not in the schema (`scores`), which now causes a type error. This looks like it was intending to test that you can apply the `$gte` operator to a numeric field, so I've switched this to query the `age` property instead.
1 parent 60345fc commit e012ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/types/community/collection/filterQuery.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ await collectionT.find({ name: { $eq: /Spot/ } }).toArray();
240240
await collectionT.find({ type: { $eq: 'dog' } }).toArray();
241241
await collectionT.find({ age: { $gt: 12, $lt: 13 } }).toArray();
242242
await collectionT.find({ treats: { $eq: 'kibble' } }).toArray();
243-
await collectionT.find({ scores: { $gte: 23 } }).toArray();
243+
await collectionT.find({ age: { $gte: 23 } }).toArray();
244244
await collectionT.find({ createdAt: { $lte: new Date() } }).toArray();
245245
await collectionT.find({ friends: { $ne: spot } }).toArray();
246246
/// it should not accept wrong queries

0 commit comments

Comments
 (0)