These are chat archives for Automattic/mongoose

Feb 2017
Miguel Dorta
Feb 16 2017 14:22
I have a database with a collection
how I can generate an scheme from this collection?
Charlie Davison
Feb 16 2017 15:16
I have a schema that specifies a property like this -
EmploymentRoles: [
            JobTitle: { type: LookUpSchema },
            StartDate: { type: Date },
            EndDate: { type: Date },
            Location: { type: String }
however mongoose is allowing me to save just an object into this, rather than an array
is this correct? is there any way to force it to only allow me to save an array?
I have strict turned on