Duplicated MongoDB collection when adding mongoose model

38 views
Skip to first unread message

Gaurang Shah

unread,
Oct 1, 2021, 9:10:49 PM10/1/21
to Mongoose Node.JS ODM
I recently added a new mongoose schema model for an existing collection. Although instead of referencing the existing collection, a new collection is created instead. 

image.png
NOTE: the existing collection is camel cased, but mongoose generates a new empty collection with the all lowercased naming convention. 

Here's the schema definition file:
Untitled.png

Any help would be greatly appreciated! Thank you! 
 
Reply all
Reply to author
Forward
0 new messages