Allows to use dot-notation to match against a complex structure when using matchesKeyInQuery
This commit is contained in:
committed by
Arthur Cinader
parent
9d1d8515fc
commit
741f869140
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user