These are chat archives for Automattic/mongoose

13th
May 2015
mluggy
@mluggy
May 13 2015 07:49
@vkarpov15 var schema = { _id: {type: String, trim: true, lowercase: true, minlength: 2, maxlength: 2, required: true, unique: true}, // us, gb continentId: {type: String, ref: 'continent', required: true}, geonameId: {type: Number, required: true, unique: true}, iso3: {type: String, trim: true, lowercase: true, unique: true}, isoNumber: {type: Number, min: 1, unique: true}, name: {type: String, trim: true, required: true, index: true}, alternativeNames: {type: [String], trim: true, index: true}, tld: {type: String, trim: true, lowercase: true}, currencyId: {type: String, lowercase: true, ref: 'currency'}, areaCode: {type: String, trim: true, lowercase: true}, languageIds: {type: [String], lowercase: true, ref: 'language'}, timeZone: {type: String, trim: true} };
basically, does "ref" fields gets validated at all?