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

Error when using single embed #10

Open
kshitizshankar opened this issue Feb 5, 2019 · 1 comment
Open

Error when using single embed #10

kshitizshankar opened this issue Feb 5, 2019 · 1 comment

Comments

@kshitizshankar
Copy link

Throws error when using Mongoose Single Embeds (https://mongoosejs.com/docs/subdocs.html#single-embedded)

let s1 = new mongoose.Schema({
    name : {
        type:String
    }
})

let s2 = new mongoose.Schema({
    name : s1
})
const dummy = require('mongoose-dummy');
let randomObject = dummy(s2)

console.log(JSON.stringify(randomObject));

Error

node_modules/mongoose-dummy/lib/index.js:339
                throw ("Unsupported type " + type)
                ^
Unsupported type embedded
@faboulaws
Copy link

faboulaws commented Aug 8, 2019

Any news about this issue?There seems to be a Pull Request solving this issue.

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