Closed 0xDones closed 3 years ago
Is this related to this issues?
@jmcdo29 Looks like it's the same problem! I was getting crazy with it 😆
Looks like there is an opened pull request with the fix (https://github.com/nestjs/mongoose/pull/692), do you have any news about that?
I mean, Kamil's asked for a reproduction and no one has provided one, so so far to me it looks blocked.
Is this related to this issues?
@jmcdo29 The issue you pointed contains a valid repo that can be used for this purpose: https://github.com/lafeuil/nestjs-mongoose-test what do you think?
Linked them. Let's track things over there
Bug Report
Current behavior
I'm trying to use Mongoose discriminator feature, but I'm getting this strange error even if I'm just importing the schema in the module definition. I don't know how I should approach, I'm doing the same thing described in the docs. I'm using the repository pattern, so I inject the Model in the repository and then inject the repository in the service.
Input Code
module.ts
repository.ts
Stack trace
Expected behavior
Should inject the Model in the service without problems.
Possible Solution
Environment