return Collection.aggregate([
{
$match: {
likes: userId
}
}, {
$group: {
_id: null,
ids: {
$addToSet: '$_id'
}
}
}]).then(e => {
return e[0].ids
})