From ee89a9676a3c778cfd03d1e83e1f641a549ec8d7 Mon Sep 17 00:00:00 2001 From: Ian Bush Date: Wed, 26 Jun 2024 13:17:50 +0100 Subject: [PATCH] Add MongoDB index to dataset property in attachments --- src/attachments/schemas/attachment.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attachments/schemas/attachment.schema.ts b/src/attachments/schemas/attachment.schema.ts index e23d13d97..d7203fe78 100644 --- a/src/attachments/schemas/attachment.schema.ts +++ b/src/attachments/schemas/attachment.schema.ts @@ -43,7 +43,7 @@ export class Attachment extends OwnableClass { caption: string; @ApiProperty({ type: String, required: false }) - @Prop({ type: String, ref: "Dataset", required: false }) + @Prop({ type: String, ref: "Dataset", index: true, required: false }) datasetId: string; @ApiProperty({ type: String, required: false })