const pipeline = [ ]
const posts = query.posts //true;
if (posts) {
pipeline.push({$unwind: "posts"})
}
а задача какая?
Alexandrr
Роман
Nick
# Major4ik ☃️
Дмитрий
sp
Vladyslav
Vadzim
Eva🇺🇦
Zona
yopp
of Astora 𒉭
Павел
Александр