Daniel Diaz

Results 37 comments of 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 =...

![image](https://user-images.githubusercontent.com/39510674/233426509-3a807240-806a-4649-809d-47bc4e5f6690.png) I'm getting a different error

![image](https://user-images.githubusercontent.com/39510674/233667652-2f799345-5715-40bb-92c7-a5a514e68ec3.png) I do have it installed

![image](https://user-images.githubusercontent.com/39510674/233668372-aa0ee949-0950-42a4-8935-a505c2ab718d.png) 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...

```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