Skip to content

Commit c69438b

Browse files
Update mongo.md
1 parent 3e77ca4 commit c69438b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/techniques/mongo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ In case you want to specify relation to another model, later for populating, you
7777
import * as mongoose from 'mongoose';
7878
import { Owner } from '../owners/schemas/owner.schema';
7979

80+
// inside the class definition
8081
@Prop({ type: mongoose.Schema.Types.ObjectId, ref: 'Owner' })
8182
owner: Owner;
8283
```

0 commit comments

Comments
 (0)