for (el of searchData) {
dataResultArray(await Data.findOne({ el: el }))
}
async function main() {
let Data = mongoose.model('data', DataSchema)
let searchData = [...]
for (el of searchData) {
dataResultArray(await Data.findOne({ el: el }))
}
}
main();