motorhead.typing
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.
Clause
Bases: Protocol
Protocol for clauses that service methods can convert to dictionaries that can be consumed by MongoDB.
Source code in motorhead/typing.py
ClientProvider
CollationDict
Bases: TypedDict
Collation definition as a dict.
Source code in motorhead/typing.py
CollectionOptions
Bases: TypedDict
Collection options.
Source code in motorhead/typing.py
DatabaseProvider
DeleteOptions
Bases: TypedDict
Delete options.
Source code in motorhead/typing.py
FindOptions
Bases: TypedDict
Find options.
Source code in motorhead/typing.py
IndexData
dataclass
Index data description.
Source code in motorhead/typing.py
InsertManyOptions
Bases: TypedDict
Options for insert many operation.
Source code in motorhead/typing.py
InsertOneOptions
Bases: TypedDict
Insert options.
Source code in motorhead/typing.py
UpdateManyOptions
Bases: TypedDict
Update-many options.
Source code in motorhead/typing.py
UpdateOneOptions
Bases: TypedDict
Update-one options.