odmantic icon indicating copy to clipboard operation
odmantic copied to clipboard

Sync and Async ODM (Object Document Mapper) for MongoDB based on python type hints

Results 176 odmantic issues
Sort by recently updated
recently updated
newest added

Fix _BaseODMModel.doc containing referenced models with primary_field != id For example: ``` class X(Model): key: str = Field(primary_field=True) class Y(Model): x_referenced: X = Reference() ``` Saving Y model previously would...

Allow passing exclude keyword arguments to engine.save. Fixes #162

Adding a function that is called before saving.

Closes Issue #121 --- Notes - I read the contribution guidelines. - I created `DocumentsNotFoundError` to aggregate multiple documents not being found. - I don't believe `delete_many` should typically raise...

Treats the following as valid datetime string values: * `2018-11-02T23:59:01.824` (assumed to be UTC) * `2018-11-02T23:59:01.824Z` (UTC in simplified extended ISO format) * `2018-11-02T23:59:01.824+00:00` (GMT, equivalent to UTC) Fixes #135.

Continuing the initial work done in #89 by @Olegt0rr . Fixes #86 Fixes #87 (added it here as it interfered with the implementation)

See #60. @art049: I create this draft PR to start discussing how this could be done. Thanks in advance.