These are chat archives for Automattic/mongoose

21st
Jun 2015
Fayi Femi-Balogun
@fayimora
Jun 21 2015 17:54
IS it ok to use mongo’s _id field as an id field in my app or should i generate another(auto incrementing or guid)
douglasf
@douglasf
Jun 21 2015 20:51
I have a query that is base on a tag search and want it to be sorted on number of tag hits. Is this possible to achieve together with paged results?
Erinç Fırtına
@EricMcRay
Jun 21 2015 21:00
Depends on ur models
Erinç Fırtına
@EricMcRay
Jun 21 2015 21:06
@fayimora i prefer mondo id cuz it feels much safer, hard to memorize. So people cant just guess a id and find stuff. "/user/1" like this routes people just guess a number and can find people.
Fayi Femi-Balogun
@fayimora
Jun 21 2015 23:00
@EricMcRay thanks.. I’m inclined to agree!
@EricMcRay i saw one of your previous messages that talked about storing password field as virtual and hashedPassword as a field in the model.. Why is this?