These are chat archives for Automattic/mongoose

Sep 2016
Sep 05 2016 17:13
good morning ^_^ I was wondering if anyone in here is any good at subdocument arrays?
Sep 05 2016 17:28
Is it possible to define a schema field as the length of another field? For example: var ExampleSchema = new mongoose.Schema({ field1: [ Number ], field2: { type: Number, default: field1.length } })