2016-07-27 20 views

Antwort

0

In Code:

var myFilter = { 
    where: { 
     or: [{ 
      val: { 
       between: [0, 7] 
      } 
     }, { 
      val: { 
       between: [11, 17] 
      } 
     }, { 
      val: { 
       between: [21, 27] 
      } 
     }] 
    } 
}; 

MyModel.find(myFilter, function (err, instances) { 
    // Code to apply on found instances 
}); 

Sie a stringified JSON Version eines Filters in der REST-Abfragen verwenden können.