Skip to content

Commit a803885

Browse files
committedAug 23, 2021
test(typescript): add coverage for #10590
1 parent bf43078 commit a803885

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎test/typescript/schema.ts

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ movieSchema.index({ title: 'text' }, {
7171
weights: { title: 10 }
7272
});
7373
movieSchema.index({ rating: -1 });
74+
movieSchema.index({ title: 1 }, { unique: true });
7475

7576
// Using `SchemaDefinition`
7677
interface IProfile { age: number; }

0 commit comments

Comments
 (0)
Please sign in to comment.