We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mongoosejs
Learn more about funding links in repositories.
Report abuse
1 parent bf43078 commit a803885Copy full SHA for a803885
test/typescript/schema.ts
@@ -71,6 +71,7 @@ movieSchema.index({ title: 'text' }, {
71
weights: { title: 10 }
72
});
73
movieSchema.index({ rating: -1 });
74
+movieSchema.index({ title: 1 }, { unique: true });
75
76
// Using `SchemaDefinition`
77
interface IProfile { age: number; }
0 commit comments