Allows to use dot-notation to match against a complex structure when using matchesKeyInQuery

This commit is contained in:
Henrik Malmberg
2017-10-31 11:34:25 +01:00
committed by Arthur Cinader
parent 9d1d8515fc
commit 741f869140

View File

@@ -337,7 +337,7 @@ RestQuery.prototype.replaceNotInQuery = function() {
const transformSelect = (selectObject, key ,objects) => {
var values = [];
for (var result of objects) {
values.push(result[key]);
values.push(key.split('.').reduce((o,i)=>o[i], result));
}
delete selectObject['$select'];
if (Array.isArray(selectObject['$in'])) {