それで、私はSQLの世界から来たので、何か間違ったことを理解したかもしれません。私は商品のコレクションを持っています。
_id: "0234weasq43rq",
title: "Panasonic",
descr: "blah blah",
price: 132,
specifications {
weight: 135,
color: "black",
type: "LCD",
diagonal: 50
}
_id: "0234weasq43rq",
title: "Samsung Galaxy Tab",
descr: "blah blah",
price: 132,
specifications {
weight: 135,
color: "white",
standard: "GSM",
wifi: "Yes"
}
商品のカテゴリ(電話やコンピューターなど)ごとに異なる仕様を設定できますか?goods.find(specifications { diagonal: 50 })
すべての商品に「対角」仕様があるとは限らない場合、のようなクエリを使用して商品を見つけるのに問題はありますか?
ありがとう!