1602 / 1602/jugglingdb

Can I nest objects?

Đang mở
#251 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2k
Fork
238
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm looking at a node/express/mongoose [tutorial](https://gist.github.com/pixelhandler/1791080) where you could do this

``` javascript

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Look at the Schema definition in jugglingdb's source code, likely in lib/schema.js or similar. Examine how nested schemas or arrays of objects are currently handled. Check existing adapters like mongodb to see if they support nested objects. The goal is to implement or document support for nested schemas similar to Mongoose's approach.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, mongodb, nodejs
Lĩnh vực
database
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.