Base method for children to call to convert an operator call into a Mongo DBObject.
Base method for children to call to convert an operator call into a Mongo DBObject.
e.g. "foo" $eq "bar"
will convert to
{"foo": "bar"}
WARNING: This does NOT check that target is a serializable type. That is, for the moment, your own problem.
Base method for children to call to convert an operator call into a nested Mongo DBObject.
Base method for children to call to convert an operator call into a nested Mongo DBObject.
e.g. "foo" $ne "bar"
will convert to
{"foo": {"$ne": "bar"}}
Optionally, if dbObj, being Some(DBObject)
is defined,
the
op(oper, )
method will nest the target value and operator
inside the existing dbObj - this is useful for things like mixing
$lte
and $gte
WARNING: This does NOT check that target is a serializable type.
That is, for the moment, your own problem.
Trait to provide the $nin (NOT In Array) method on appropriate callers.
Targets (takes a right-hand value of) Arrays of [Any] and variable argument lists of Any.
Note that the magic of Scala DSLey-ness means that you can write a method such as:
var x = "foo" $nin (1, 2, 3, 5, 28)
As a valid statement - (1...28) is taken as the argument list to $nin and converted to an Array under the covers.
http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-%24nin