You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Throws error when using Mongoose Single Embeds (https://mongoosejs.com/docs/subdocs.html#single-embedded)
Error
The text was updated successfully, but these errors were encountered: