Skip to content
New issue

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

Add MongoDB default Guid serialization #249

Merged
merged 9 commits into from
Nov 13, 2024
Merged

Add MongoDB default Guid serialization #249

merged 9 commits into from
Nov 13, 2024

Conversation

mhelleborg
Copy link
Member

Summary

This release fixes some issues that can be experienced if you use Guids in read models without annotating the type with BsonGuidRepresentation.

It also gives access to the underlying connection string & MongoUrl per tenant, if the user requires more control over connection setup.

Added

  • Default serialized representation of Guid, with the ability to override defaults. By default, this brings the behavior back to MongoDB's pre 3.0.0-drivers.
  • Ability to access underlying connection string / MongoUrl per tenant

Fixed

  • Now allows non-annotated Guids in read models again

@mhelleborg mhelleborg self-assigned this Nov 13, 2024
@mhelleborg mhelleborg merged commit e7cf799 into master Nov 13, 2024
1 check passed
@mhelleborg mhelleborg deleted the mongodb-defaults branch November 13, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant