Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Error using mongoose #49

Description

@ysilvela

I'm using mongoose to query mongodb from nodejs and I obtain next error when query a document:

2015-12-11T08:56:13.381Z - error: uncaughtException: Cannot read property 'discriminatorMapping' of undefined

The line of code thats thwows error:

User.findOne.sync({id_company: id_c}, function(err, usr) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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