Collection Name not changing

18 views
Skip to first unread message

Shashank Pandey

unread,
Dec 16, 2016, 1:34:51 AM12/16/16
to Mongoose Node.JS ODM
I have tried changing the default collection name in a Mongoose Model by explicitly setting the collection_name in the model.But still when I save the data, the name is not changing i.e it pluralizes the Model name. I am using Mongoose version 4.7.2.

Steve Lyle

unread,
Apr 27, 2017, 10:14:23 PM4/27/17
to Mongoose Node.JS ODM
Yeah.  Also notice how mongoose can only see collection names that are all LOWER CASE (contrary to mongoDb which is case sensitive).  And if it doesn't see the collection mongoose doesn't say anything.  Not even with DEBUG turned on.

Steve Lyle

unread,
Apr 27, 2017, 10:29:54 PM4/27/17
to Mongoose Node.JS ODM
Another script kiddie flaw.

If you try to query mongo without first connecting mongoose ... mongoose says NOTHING about deeply error-ed condition.  NOT EVEN IF YOU HAVE DEBUG TURNED ON.


On Friday, December 16, 2016 at 1:34:51 AM UTC-5, Shashank Pandey wrote:

Shashank Pandey

unread,
Apr 28, 2017, 12:49:55 AM4/28/17
to mongoo...@googlegroups.com
Thanks Steve


--
Documentation - http://mongoosejs.com/
Plugins - http://plugins.mongoosejs.com/
Bug Reports - http://github.com/learnboost/mongoose
Production Examples - http://mongoosejs.tumblr.com/
StackOverflow - http://stackoverflow.com/questions/tagged/mongoose
Google Groups - https://groups.google.com/forum/?fromgroups#!forum/mongoose-orm
Twitter - https://twitter.com/mongoosejs
IRC - #mongoosejs
---
You received this message because you are subscribed to a topic in the Google Groups "Mongoose Node.JS ODM" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongoose-orm/B4JGf5PBAzA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongoose-orm+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages