Answer the question
In order to leave comments, you need to log in
How to organize a search in the mongodb database?
There is the following scheme:
new Schema({
_id: String,
name: String,
type: String,
grup: String,
points: [{
date: String,
price: Number,
month: Number,
year: Number
}],
market: String,
inflation: Number,
inflationYears: Object
})
product.find({name: "Tom"}, (err, res) => {}
Answer the question
In order to leave comments, you need to log in
Hastened to write)
The decision is banal simple, badly read to dock.
product.find({"points.year": 2019}, (err, res) => {}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question