$$(issues) filter({ createdAt: { $gte: moment(new Date('2018')).endOf('year').toDate() } }) pickBy(createdAt) as(issues)
parenthesis inside parenthesis should not match
so the value will only
issue
{ createdAt: { $gte: moment(new Date('2018')).endOf('year').toDate() } }
createdAt
issues
this match all parenthesis which is wrong
\((.+?)\)