add & operator to find many ids
This commit is contained in:
parent
4ec7e1b6c1
commit
3465d3ee9f
4 changed files with 22 additions and 15 deletions
|
|
@ -78,14 +78,14 @@ pandora.ui.editDialog = function() {
|
|||
pandora.api.find({
|
||||
keys: keys,
|
||||
query: {
|
||||
conditions: ids.map(function(id) {
|
||||
return {
|
||||
conditions: [
|
||||
{
|
||||
key: 'id',
|
||||
operator: '==',
|
||||
value: id
|
||||
};
|
||||
}),
|
||||
operator: '|'
|
||||
operator: '&',
|
||||
value: ids
|
||||
}
|
||||
],
|
||||
operator: '&'
|
||||
}
|
||||
}, function(result) {
|
||||
var data = {},
|
||||
|
|
|
|||
|
|
@ -77,14 +77,14 @@ pandora.ui.editDocumentsDialog = function() {
|
|||
pandora.api.findDocuments({
|
||||
keys: keys,
|
||||
query: {
|
||||
conditions: ids.map(function(id) {
|
||||
return {
|
||||
conditions: [
|
||||
{
|
||||
key: 'id',
|
||||
operator: '==',
|
||||
value: id
|
||||
};
|
||||
}),
|
||||
operator: '|'
|
||||
operator: '&',
|
||||
value: ids
|
||||
}
|
||||
],
|
||||
operator: '&'
|
||||
}
|
||||
}, function(result) {
|
||||
var data = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue