mongodb - Range for the result of the %mod operator -


for document :

{             cartid : 11,             items : [{                     itemid : 1,                     et : 100                 }, {                     itemid : 2,                     et : 200                 }, {                     itemid : 3,                     et : 300                 }             ] } 

i want generate query filter

select * carts cartid%100 > 10 &&  cartid%100 <= 20  

i know can using $where, can using $mod ?

mongodb documentation link same : http://docs.mongodb.org/manual/reference/operator/mod/

no-- unfortunately, $mod operator cannot take range possible remainder.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -