Meta Classes#

Extra classes which don’t fit into a given category

All of these classes are importable from alaric.meta

Negate#

Note

NEGATE is still exported for backwards compatibility reasons.

class alaric.meta.Negate(comparison: ComparisonT)#

Negate a given option, I.e. Do the opposite.

Supported operands:

Lets get all documents without a field called prefix

1from alaric.comparison import Exists
2from alaric.meta import Negate
3from alaric import AQ
4
5query = AQ(Negate(Exists("prefix")))
build() Dict#

Returns a mongo usable filter for the negated option.

All#

class alaric.meta.All#

Return all documents in the collection.

1from alaric.meta import All
2
3query = AQ(All())
build() Dict#