We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kind of like what marshmallow's context-aware serialization has:
class PersonSchema(Schema): id = fields.Integer() name = fields.Method("get_name") def get_name(self, person, context): if context.get("anonymize"): return "<anonymized>" return person.name person = Person(name="Monty") schema = PersonSchema() schema.dump(person) # {'id': 143, 'name': 'Monty'} # In a different context, anonymize the name schema.context["anonymize"] = True schema.dump(person) # {'id': 143, 'name': '<anonymized>'}
but with asynchronous methods (depending on the driver)
It would be very useful to have this feature here on uMongo too.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Kind of like what marshmallow's context-aware serialization has:
but with asynchronous methods (depending on the driver)
It would be very useful to have this feature here on uMongo too.
The text was updated successfully, but these errors were encountered: