INNER CODE UNIT · Python

_serialize_to_mongo

Scille/umongo · src/umongo/abstract.py:174

    def _serialize_to_mongo(self, obj):
        return obj

    def _deserialize_from_mongo(self, value):
        return value

    def _extract_marshmallow_field_params(self):
        params = {
            attribute: getattr(self, attribute)
            for attribute in (
                "validate",
                "required",
                "allow_none",
                "load_only",
                "dump_only",
                "error_messages",
            )
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…