Commit 8e629fa
authored
chore: provide a better error message when users attempt to call composeWithMongooseDiscriminators without first registering discriminators on their base model
Provide a better error message when users attempt to call `composeWithMongooseDiscriminators` without first registering discriminators on their base model (eg `baseModel.discriminator("ChildModel", ChildModelSchema)`1 parent 7f57391 commit 8e629fa
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments