These are chat archives for Automattic/mongoose

22nd
Dec 2015
@runtimeZero
@runtimeZero
Dec 22 2015 03:41
I am using node v4.2.2
along with mongo v 3.2
and mongoose v 4.3.3
however when my node application attempts to connect to mongo (via mongoose)
i receive the following errors
Mongoose connection error: MongoError: connect ETIMEDOUT 127.0.0.1:27017
James Lee
@uptownhr
Dec 22 2015 05:12
@shreya5 is your mongodb server running? If so, running on your local machine?
@runtimeZero
@runtimeZero
Dec 22 2015 05:13
no mongodb was not running
reverting back to node 0.12 and mongo 2.6
did the trick
James Lee
@uptownhr
Dec 22 2015 05:18
Every thing should work with the latest versions
James Lee
@uptownhr
Dec 22 2015 05:24
9
Oleg Bogdanov
@wormen
Dec 22 2015 07:12
Hi guys
there is the question
Oleg Bogdanov
@wormen
Dec 22 2015 07:17

I have a model like me it can pass parameters to them in the future on the basis of I could change the name of the collection
for example, there is such a call

Models.MenuSite(data).save(function(err, result){
});

or

Models.MenuSite.find({}, {}, function(err, result){
 });

how in this case, I can dynamically change collection name?

Ernst Wettstaedt
@BerndErnst
Dec 22 2015 09:20
Hi there~
My first time and question here :smile:
I want to validate the E-Mail input of an user form. How can I give feedback to the user if the input is correct or not?
Like:
email: {type: String, validate: validators.isEmail()}