From 783d5689e1b6379695887f74014e492cc42de9f6 Mon Sep 17 00:00:00 2001 From: Gabriele Toselli Date: Mon, 19 Feb 2024 11:25:30 +0100 Subject: [PATCH] fix(mongo-query-repo): remove default id unique index --- src/repo/mongo-query-repo.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/repo/mongo-query-repo.ts b/src/repo/mongo-query-repo.ts index 5753d02..56a6700 100644 --- a/src/repo/mongo-query-repo.ts +++ b/src/repo/mongo-query-repo.ts @@ -19,7 +19,6 @@ export abstract class MongoQueryRepo implements IInit { } async init() { - await this.collection.createIndex({ id: 1 }, { unique: true }); if (!isEmpty(this.indexes)) { for (const { indexSpec, options } of this.indexes) { await this.collection.createIndex(indexSpec, options || {});