Figured it out.
I am was using a collection with the name RiskCatalog, Apparetly mongoose creates the name and adds “s” at the end by default. so the collection name is created as RiskCatalogs instead, not sure why mongoose does that.
Figured it out.
I am was using a collection with the name RiskCatalog, Apparetly mongoose creates the name and adds “s” at the end by default. so the collection name is created as RiskCatalogs instead, not sure why mongoose does that.