These are chat archives for Automattic/mongoose

5th
Jul 2016
jhagege
@jhagege
Jul 05 2016 08:21
Hi guys,
Anyone knows how to use autocomplete of static mongoose methods in Webstorm ?
nacq
@nacq
Jul 05 2016 15:27
Noob question, is there any way to perform an update and get the old document and the new one, to compare (im doing like and history thingy)
Yogesh Patel
@ycpatel813
Jul 05 2016 16:42
Hi i want check case insensitive email address before creating new entry.please help. thanks in advance
nacq
@nacq
Jul 05 2016 16:44
@ycpatel813 you can set lowercase: true on your model or/and use the pre save hook
Yogesh Patel
@ycpatel813
Jul 05 2016 16:47
@nacq i read doc and i tried to use lowercase:true but i failed :worried: i will try to use the pre save hook. and for username also i need this but there i can not use this both so any idea for username also. and thank for help:smile:
Yogesh Patel
@ycpatel813
Jul 05 2016 16:54
$regex used by me thanks solved :fire: