newStaffLDB-API #48
@ -24,8 +24,9 @@ async function query(collection, query, returnId = false) {
|
||||
log.out(`dbAccess.query: Running Query: ${JSON.stringify(query)}`, "info");
|
||||
increment(collection);
|
||||
log.out("dbAccess.query: Query response:");
|
||||
console.log(await qcursor.toArray());
|
||||
return await qcursor.toArray();
|
||||
let result = await qcursor.toArray();
|
||||
console.log(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
async function queryProject(collection, query, projection) {
|
||||
|
Loading…
Reference in New Issue
Block a user