- Companion
- object
Value members
Abstract methods
Creates a filter that performs a logical AND of the provided filter.
Creates a filter that performs a logical AND of the provided filter.
<blockquote> <pre> eq("x", 1).and(lt("y", 3)) </pre> </blockquote>
will generate a MongoDB query like: <blockquote>
<pre> { $and: [{x : 1}, {y : {$lt : 3}}]} </pre>
</blockquote>
{ $and: [{x : 1}, {y : {$lt : 3}}]} </pre>
eq("x", 1).and(lt("y", 3)) </pre>
will generate a MongoDB query like: <blockquote>
<pre> { $and: [{x : 1}, {y : {$lt : 3}}]} </pre>
</blockquote>
{ $and: [{x : 1}, {y : {$lt : 3}}]} </pre>
- Value Params
- anotherFilter
the filter to and together
- Returns
the filter
Creates a filter that performs a logical NOR operation on the specified filters.
Creates a filter that performs a logical NOR operation on the specified filters.
- Value Params
- anotherFilter
the filter to or together
- Returns
the filter
Creates a filter that matches all documents that do not match the passed in filter. Lifts the current filter to create a valid "$not" query:
Creates a filter that matches all documents that do not match the passed in filter. Lifts the current filter to create a valid "$not" query:
<blockquote> <pre> eq("x", 1).not </pre> </blockquote>
will generate a MongoDB query like: <blockquote>
<pre> {x : $not: {$eq : 1}} </pre>
</blockquote>
{x : $not: {$eq : 1}} </pre>
eq("x", 1).not </pre>
will generate a MongoDB query like: <blockquote>
<pre> {x : $not: {$eq : 1}} </pre>
</blockquote>
{x : $not: {$eq : 1}} </pre>
- Returns
the filter