These are chat archives for Automattic/mongoose

5th
Nov 2017
Philippe Guilbault
@Bwen
Nov 05 2017 09:47
Hi, I am using feathersjs and I have this in my mongoose model role: { type: String, required: true, default: 'ROLE_CLIENT'},. But it never saves the default value in the database. What could be preventing that?
I tried dropping the whole collection and trying again but still have the bug
Philippe Guilbault
@Bwen
Nov 05 2017 10:06
nevermind I think its a featherjs problem.