MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / aggregate

Function aggregate

code/matlab_py/bridge_mongo.py:33–37  ·  view source on GitHub ↗
(db, database, pipeline)

Source from the content-addressed store, hash-verified

31 db[database].insert_many(document)
32
33def aggregate(db, database, pipeline):
34 result = []
35 for x in db[database].aggregate(pipeline):
36 result.append(x)
37 return result
38
39def find_one(db, database, kwargs):
40 x = db[database].find_one(**kwargs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected