简体   繁体   中英

How to create a document when the created_at field is null or does not exist in MongoDB

When I create a document from the app, it will automatically generate a field that is created_at with the value of the current time

So if I don't want that field automatically generated when creating a new document, what should I do?

Thanks.

在 NodeJS 中,在声明文档的架构时,删除时间戳键及其值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM