Hi everyone!
Thanks for your moralis service.
I am going to use group by filter by date.
For example, I am going to get the total prices by collectionAddress after a certain date.
So I used this code, but it returns an empty array.
let pipeline = [
{
match: {
updatedAt: {
$gte: new Date(parseInt(request.params.from))
}
}
},
{
group: {
objectId: '$collectionAddress',
total: {
$sum: '$price'
},
},
},
];
How can I fix this issue?
Thanks.