These are chat archives for Automattic/mongoose

3rd
Mar 2016
Daniel Acuña
@moustacheful
Mar 03 2016 02:32
@uptownhr most likely that, no errors anywhere at all. turned out to be my local mongo db, which didn't seem to want to cooperate with mongoose, unsure why. super weird, considering I could connect to it with other clients.
Alvaro Almendros Gala
@arkdelkaos
Mar 03 2016 12:55

@dennisver

role: {
   type: String,
   enum: ['admin', 'manager', 'user']
}

Imho, this kind of list its better to load it from a global var. If you need to know how to do it, just ask ;)

Bostonncity
@Bostonncity
Mar 03 2016 16:17
Yah