Helper types
MongoProjection = dict[str, Any]
module-attribute
MongoDB projection object.
MongoQuery = dict[str, Any]
module-attribute
MongoDB query object.
UpdateObject = dict[str, Any] | Sequence[dict[str, Any]]
module-attribute
MongoDB update object.
CollationDict
Bases: TypedDict
Collation definition as a dict.
Source code in fastapi_motor_oil/typing.py
CollectionOptions
Bases: TypedDict
Collection options.
Source code in fastapi_motor_oil/typing.py
DeleteOptions
Bases: TypedDict
Delete options.
Source code in fastapi_motor_oil/typing.py
FindOptions
Bases: TypedDict
Find options.
Source code in fastapi_motor_oil/typing.py
IndexData
dataclass
Index data description.
Source code in fastapi_motor_oil/typing.py
InsertOneOptions
Bases: TypedDict
Insert options.
Source code in fastapi_motor_oil/typing.py
UpdateManyOptions
Bases: TypedDict
Update-many options.
Source code in fastapi_motor_oil/typing.py
UpdateOneOptions
Bases: TypedDict
Update-one options.