Skip to content

Commit

Permalink
Revert "Revert "feat: unique indexing""
Browse files Browse the repository at this point in the history
This reverts commit b0a3f4f.
  • Loading branch information
Pratap2018 committed Apr 27, 2024
1 parent 91deec4 commit b228077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/user-vault/schemas/doucment.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,6 @@ export class DocSchema {
export const DoucmentSchema = SchemaFactory.createForClass(DocSchema);

DoucmentSchema.index({ "id": 1 }, { unique: true, background:true, });
DoucmentSchema.index({ 'indexed.attributes.0.value': 1 }, { unique: true });


0 comments on commit b228077

Please sign in to comment.