jugglingdb icon indicating copy to clipboard operation
jugglingdb copied to clipboard

Can I nest objects?

Open cheapsteak opened this issue 11 years ago • 2 comments

I'm looking at a node/express/mongoose tutorial where you could do this


var Images = new Schema({
    kind: { 
        type: String, 
        enum: ['thumbnail', 'catalog', 'detail', 'zoom'],
        required: true
    },
    url: { type: String, required: true }
});

var Product = new Schema({
    title: { type: String, required: true },
    images: [Images],
});

Is there a way to do something similar with jugglingdb?

cheapsteak avatar Apr 01 '13 06:04 cheapsteak