def list(self, request):
        pipeline = [{'$match': request.args.pop('match', {})}]

        sort = request.args.pop('sort', {})
        if sort:
            pipeline.append({'$sort': sort})

        project = request.args.pop('project', {})
        if project:
            pipeline.append({'$project': project})

        return Response(serialize(self.collection.aggregate(pipeline)))
Write string 'bytes' to subpath.
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/resource.py/ListResourceMixin.list--crossover with--dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/storages/__init__.py/StorageBackend.puts