Daniel Diaz
Daniel Diaz
Re-reading your code, I think the problem is that you're trying to run a create operation while not connected to the database. Try connecting to the database first. If you...
The virtual is not autopopulated while the document property is. ```javascript const mongoose = require('mongoose'); const AddressSchema = new mongoose.Schema( { name: { type: String }, status: { type: String,...
It will run correctly but the typing error is there. ```typescript import * as mongoose from 'mongoose'; import * as assert from 'assert'; const mongooseLeanId = require('mongoose-lean-id'); const testSchema =...
 I'm getting a different error
 I do have it installed
 Running it anyway causes this
Mongoose version 4.13.21 `1.938`ms ```javascript const mongoose = require('mongoose'); const testSchema = new mongoose.Schema({ name: String, val: Number }); const Test = mongoose.model('Test', testSchema); async function main() { for (let...
lean causes a +/- change of 1 ms.
```typescript import * as mongoose from 'mongoose'; interface IComment { userName: string; userSurname: string; body: string; createdAt: Date; updatedAt: Date; } interface ICommentVirtuals { user: string; } type CommentModelType =...
You can make a PR off master