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