@nodeart/dal
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@nodeart/dal", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Bridge for database connector(for now only Firebase).", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -199,2 +199,13 @@ import { esIndex } from './consts'; | ||
} | ||
getOrdersByUserId(userId) { | ||
let queryObj = { | ||
query: { | ||
match: { | ||
userId: userId | ||
} | ||
} | ||
}; | ||
return this.connector.requestData(esIndex, 'orders', queryObj); | ||
} | ||
} |
5855
176