Skip to content

"register" must be a Function #7

Description

@mortenko

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"
      }
    ]
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions