Skip to content

Commit 5ff5ffc

Browse files
Update mongo.md
1 parent 471e34b commit 5ff5ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/mongo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ owner: Owner;
8585
In case there are multiple owners, your property configuration should look as follows:
8686

8787
```typescript
88-
@Prop({ type: [Types.ObjectId], ref: Owner.name })
88+
@Prop({ type: [{ type: Types.ObjectId, ref: Owner.name }] })
8989
owner: Owner[];
9090
```
9191

0 commit comments

Comments
 (0)