Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when use insertOne have a error #44

Open
munitioner opened this issue Nov 16, 2020 · 3 comments
Open

when use insertOne have a error #44

munitioner opened this issue Nov 16, 2020 · 3 comments

Comments

@munitioner
Copy link

munitioner commented Nov 16, 2020

this is my code and error
微信截图_20201116201430
微信截图_20201116201455

@brickyang
Copy link
Owner

this is my code and error

微信截图_20201116201430

微信截图_20201116201455

错误提示很清楚,this.app.mongo undefined。检查插件是否成功启用(可以检查 log)并逐步打印 mongoapp 对象排查。

@munitioner
Copy link
Author

插件可以正常使用,find和updateOne都正常

@brickyang
Copy link
Owner

brickyang commented Nov 16, 2020

插件可以正常使用,find和updateOne都正常

在同一个环境内吗?

连续打印三行

console.log(this.app.mongo);
console.log(this.app.mongo.find);
console.log(this.app.mongo.insertOne);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants