use in operator(&) to query many ids

This commit is contained in:
j 2019-01-31 11:02:20 +05:30
parent 3111b94792
commit 8866960009

View file

@ -77,15 +77,16 @@ oml.ui.editDialog = function() {
oml.api.find({ oml.api.find({
keys: keys, keys: keys,
query: { query: {
conditions: ids.map(function(id) { conditions: [
return { {
key: 'id', key: 'id',
operator: '==', operator: '&',
value: id value: ids
}; }
}), ],
operator: '|' operator: '&'
} },
range: [0, ids.length]
}, function(result) { }, function(result) {
var data = {}, var data = {},
isMixed = {}, isMixed = {},