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

"register" must be a Function #7

Open
mortenko opened this issue May 22, 2018 · 1 comment
Open

"register" must be a Function #7

mortenko opened this issue May 22, 2018 · 1 comment

Comments

@mortenko
Copy link

Is this hapi plugin compatible with the newest version Hapi ?
I still get this error: "register" must be a Function

here is my code :

const mongojs = require("hapi-mongojs");

module.exports = {
  name: "mongojs",
  register: mongojs,
  options: {
    url: "mongodb://localhost:27017/react_native_db",
    collections: [
      {
        name: "users"
      }
    ]
  }
};

@niqdev
Copy link
Owner

niqdev commented May 22, 2018

Hi, I haven't try with the latest version, the code is actually simple, if you fix the issue and create a PR I'm more than happy to release a new version.
Thanks

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