@classmethod
    @serializable
    def aggregate(cls, pipeline=None, **kwargs):
        return list(cls.collection.aggregate(pipeline or [], **kwargs))
Returns the document dicts returned from the Aggregation Pipeline
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.aggregate