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

nev.generateTempUserModel(User) doesn't work with fields nested inside objects #86

Open
ohharsen opened this issue Jul 7, 2018 · 0 comments

Comments

@ohharsen
Copy link

ohharsen commented Jul 7, 2018

I have a schema something like:

var userSchema = mongoose.Schema({

    local            : {
        email        : String,
        password     : String,
        verified     : {type: Boolean, default: false}
    } ...

When I use nev.generateTempUserModel(User) to create the temporary user model it doesn't actually save the object. The only way to do that is to write local.password = password for example. I had to use predefined file to solve this.

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