Moved the enums that were defined in index to a more relevant place. Ex OperatorEnum is now in monggregate.operators.py
Breaking Changes
Operators now return python objects rather than expressions/statements.
NOTE: The wording might change for clarification purposes.
statement might be renamed expression and resolve might renamed express
To do so, some arguments might need to be renamed in the operators
Expressions subpackage has been exploded and some parts have been deleted
Documentation
Updated readme to reflect changes in the packge. Readme now focuses on the recommended way to use the package and clarifies how to use MongoDB operators.
0.15.0
Fixes
Fixed bug in Search.from_operator() classmethod due to recent change in operator type in Search class
Fixed misspelled operators in constructors map in Search class
Fixed missing aliases and missing kwargs reduction in some Search operators
0.14.1
Fixes
Fixed autocompletion
Refactoring
Import pydantic into base.py and using base.py to access pydantic features
0.14.0
Upgrades
Make package compatible with pydantic V2
Refactoring
Use an import trick to still use pydantic V1 even on environments using pydantic V2
Centralized pydantic import into base.py in order to avoid having to use import trick on multiple files
Documentation
Updated readme to better reflect current state of the pacakge.