def aggregate(cls, pipeline=None, **kwargs):
        """
        Returns the document dicts returned from the Aggregation Pipeline
        """
        return list(cls.collection.aggregate(pipeline or [], **kwargs))
def aggregate ( cls , pipeline = None , ** kwargs ) : return list ( cls . collection . aggregate ( pipeline or [ ] , ** kwargs ) )
Returns the document dicts returned from the Aggregation Pipeline