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

config null #1

Open
javaxiu opened this issue Sep 27, 2017 · 0 comments
Open

config null #1

javaxiu opened this issue Sep 27, 2017 · 0 comments

Comments

@javaxiu
Copy link

javaxiu commented Sep 27, 2017

co(function *() {
try {
const connectDB = yield mongo(config);
const menus = connectDB.getQuery('menus');
const list = yield menus.find();
console.log('list:', list);
}catch (e){
console.error(e)
}
});
config 已经填写了还是会报错,进去看config是null

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

1 participant