Skip to content

Commit 18d8fc8

Browse files
bohemimaacinader
authored andcommitted
Allows to use dot-notation to match against a complex structure when using matchesKeyInQuery
1 parent b69a0a4 commit 18d8fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RestQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ RestQuery.prototype.replaceNotInQuery = function() {
337337
const transformSelect = (selectObject, key ,objects) => {
338338
var values = [];
339339
for (var result of objects) {
340-
values.push(result[key]);
340+
values.push(key.split('.').reduce((o,i)=>o[i], result));
341341
}
342342
delete selectObject['$select'];
343343
if (Array.isArray(selectObject['$in'])) {

0 commit comments

Comments
 (0)