These are chat archives for Automattic/mongoose

5th
Sep 2016
schristoff
@schristoff
Sep 05 2016 17:13
good morning ^_^ I was wondering if anyone in here is any good at subdocument arrays?
nacq
@nacq
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 } })