Trait to provide the $inc (inc) method as a bareword operator..
$inc ("foo" -> 5)
Targets an RValue of (String, ValidNumericType)* to be converted to a DBObject
Due to a quirk in the way I implemented type detection this fails if you mix ValidNumericType types.
E.g. floats work, but not mixing floats and ints. This can be easily circumvented
if you want 'ints' with floats by making your ints floats with .0:
Trait to provide the $inc (inc) method as a bareword operator..
Targets an RValue of (String, ValidNumericType)* to be converted to a DBObject
Due to a quirk in the way I implemented type detection this fails if you mix ValidNumericType types. E.g. floats work, but not mixing floats and ints. This can be easily circumvented if you want 'ints' with floats by making your ints floats with .0:
1.0
http://www.mongodb.org/display/DOCS/Updating#Updating-%24inc