These are chat archives for Automattic/mongoose

14th
Feb 2017
SAURAV SINGh
@TheRisingSun100_twitter
Feb 14 2017 05:20
Hi Guys... I'm getting confused with .connect() and .createConnection(). Can You guys clear where and how to use both of these? Thanks ...
Yogesh Patel
@ycpatel813
Feb 14 2017 06:33

Hi Friends,

Thing.post('find', function(doc, next){ 
                            doc.newfield = "example text";
                            next();
});

is it possible in mongoose hook?

akilesh
@akileshv
Feb 14 2017 07:00
i nedd help on passport-local-mongoose
Yogesh Patel
@ycpatel813
Feb 14 2017 07:03
yes @akhileshv
akilesh
@akileshv
Feb 14 2017 07:06
how to give multiple value to usernameField
ex: usernameField: 'email' | 'phonenumber'
@ycpatel813
Yogesh Patel
@ycpatel813
Feb 14 2017 07:11
don't give multiple value pass single value and compare using Or conditon
like
email:email
phone:email
username:email
akilesh
@akileshv
Feb 14 2017 07:16
thank you @ycpatel813