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
Post a Comment