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({
keys: keys,
query: {
conditions: ids.map(function(id) {
return {
conditions: [
{
key: 'id',
operator: '==',
value: id
};
}),
operator: '|'
}
operator: '&',
value: ids
}
],
operator: '&'
},
range: [0, ids.length]
}, function(result) {
var data = {},
isMixed = {},