def __init__(self, query='*'):
        """
        Create an aggregation request. This request may then be passed to
        `client.aggregate()`.

        In order for the request to be usable, it must contain at least one
        group.

        - **query** Query string for filtering records.

        All member methods (except `build_args()`)
        return the object itself, making them useful for chaining.
        """
        self._query = query
        self._groups = []
        self._projections = []
        self._loadfields = []
        self._limit = Limit()
        self._sortby = []
        self._max = 0
        self._with_schema = False
        self._verbatim = False
        self._cursor = []
def __init__ ( self , query = '*' ) : self . _query = query self . _groups = [ ] self . _projections = [ ] self . _loadfields = [ ] self . _limit = Limit ( ) self . _sortby = [ ] self . _max = 0 self . _with_schema = False self . _verbatim = False self . _cursor = [ ]
Create an aggregation request. This request may then be passed to
        `client.aggregate()`.

        In order for the request to be usable, it must contain at least one
        group.

        - **query** Query string for filtering records.

        All member methods (except `build_args()`)
        return the object itself, making them useful for chaining.