timestamps do not work on embedded documents or subdocuments in mongoose

0

normally timestamps would work

var UserSchema = Schema ({{
  name: String,
  description:String
},{
 timestamps: true
})

but timestapms does not work in

var UserSchema = Schema({

                name: String,
                description: String,
                publications: [{
                    title: String,
                    description: String
                }, {
                    timestamps: true
                }]
            })

I've been looking for hours and nothing that I can solve this

    
asked by santiago 23.04.2018 в 19:05
source

0 answers