

def list_objects(self, uid, token, query={
    
}):
    '\n        List the objects of a user.\n\n        :param uid: User id.\n        :param token: Access token.\n        :param query: Optional query.\n        '
    database = self.client[uid]
    database.authenticate(query, token)
    collection = database['data_objects']
    res = []
    for item in collection.find(query):
        res.append((str(item['_id']), item['meta']))
    return res

dataset/ETHPy150Open tmetsch/suricate/suricate/data/object_store.py MongoStore.list_objects/VarMisuse@36/93 `uid`->`query`