开发者

How can I put the current timestamp in a Mongoose Schema?

As per the docs, I can do this for a date:

new Sch开发者_运维知识库ema({
    date: { type: Date, default: Date.now }
})

But what if I need time?


Looks like that does timestamps too!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜