mongoose-to-swagger
mongoose-to-swagger copied to clipboard
Exclude specific fields
Sorry for my ignorance, but how can I exclude a specific field from being exported? In my case, I want exclude the "_id" field because it's automatically generated. Is it supported?
@timvol Update this line const omitted = new Set(['__v']);
to
this const omitted = new Set(['__v', '_id']);
if you want to remove _id