Пример #1
0
def find_by_code(collection, code, sortdate):
    return mongo_commons.find(client, database, collection, { "$query": { "code" : code }, "$orderby": [{ "coverageTime.from" : sortdate }]});
Пример #2
0
def find_query(collection, query):
    return mongo_commons.find(client, database, collection, query)
Пример #3
0
def find_by_layername(collection, layername):
    return mongo_commons.find(client, database, collection, { "$query": { "layername" : layername }, "$orderby": [{ "layertitle" : 1 }]});
Пример #4
0
def find(collection):
     return mongo_commons.find(client, database, collection, { "$query": {}, "$orderby": [{ "layertitle" : 1 }, {"date" : 1}]})