Brick

Results 6 comments of Brick

> Can we merge this if the changes are accurate? I think so

same issue here

`mongo.db` 即可使用所有官方 API。这个就是原始的 mongodb 对象。

> this is my code and error > > ![微信截图_20201116201430](https://user-images.githubusercontent.com/14157458/99251631-9e171000-2848-11eb-8564-064a0c7f2d12.png) > > ![微信截图_20201116201455](https://user-images.githubusercontent.com/14157458/99251632-9e171000-2848-11eb-88bb-9103ba91d0d4.png) > > 错误提示很清楚,`this.app.mongo` undefined。检查插件是否成功启用(可以检查 log)并逐步打印 `mongo` 和 `app` 对象排查。

> 插件可以正常使用,find和updateOne都正常 在同一个环境内吗? 连续打印三行 ``` console.log(this.app.mongo); console.log(this.app.mongo.find); console.log(this.app.mongo.insertOne); ```

Same issue here. @iveney 's solution works.