Skip to content

query config is required else throws error #130

@rbucker

Description

@rbucker

The following code snippet generates an error: [TypeError: Cannot call method 'hasOwnProperty' of undefined]

orm.connect({database:'ultimet.db', protocol:'sqlite'}, function (err, db) {
   if (err) {
       console.error(err);
    } else {
        console.log('connected to the DB');
    }
});

If I include this in the connect() options then it works fine.

query:{debug:true}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions