find({name: {$regex: /Значение/}}),
createIndex( { name: "text" } )
find( { $text: { $search: "Значение" } } )
let pipeline = [
{
$project: {
tasks: {
$filter: {
input: "$tasks",
as: "task",
cond: {$eq:["$$task.startTime", toTimeZone( Date.now(), 'Europe/Berlin').toString()]}
}
}
}
}
]
db.user.aggregate(pipeline);