How do you turn a Mongoose document into a plain object?

来源:互联网 发布:java 判断session失效 编辑:程序博客网 时间:2024/06/14 05:07

点击打开链接


Mongoose Models inherit from Documents, which have a toObject() method. I believe what you're looking for should be the result of doc.toObject().

0 0
原创粉丝点击