Open targos opened 3 years ago
Hello, nothing yet directly from the Model, but you can already do aggregations using the Collection object:
const collection = await Model.getCollection();
collection.aggregate(...)
https://mongodb.github.io/node-mongodb-native/4.1/classes/Collection.html#aggregate
Please, any feedback about aggregations? I did a full
model.query({...})
and it works! Bu I did not findmode.aggregation({})
... thanks for your work