-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I recently got issue when running npx mtgen in my project.
parser: Unknown type detected for field "type", using type "any". Please create an issue in the mongoose-tsgen GitHub repo to have this case handled.I never got this before and now my type export got capitalized i.e. SomeThing when it should be someThing and cause import error on my application.
Do I have to change all import statement to follow this capitalized export?
// from
import {someThing} from "somewhere";
// to
import {SomeThing} from "somewhere";Do I have to change my model definition to capitalized when my mongodb collection use lower case?
// from
const SomeThing = mongoose.model<someThing, SomeThingModel>("something", SomeThingSchema);
// to
const SomeThing = mongoose.model<SomeThing, SomeThingModel>("Something", SomeThingSchema);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels