const query = new Moralis.Query("WatchedEthAddress");
const pipe = [
{
$match: {
$expr: { $gte: [{ $toInt: "$balance" }, ethbalance] }
}
}
]
const result = await query.aggregate(pipe)
throws unauthorized - master key required error.
When I query the collection with a normal .find() for example I get results. Using aggregate its not working. How to solve this?