Skip to content

Add JsonObjectBsonSerializer for MongoDB#2314

Merged
einari merged 3 commits into
mainfrom
feat/json-object-bson-serializer
Jun 23, 2026
Merged

Add JsonObjectBsonSerializer for MongoDB#2314
einari merged 3 commits into
mainfrom
feat/json-object-bson-serializer

Conversation

@einari

@einari einari commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Added

  • Read models with JsonObject properties can now be persisted and queried through Arc.MongoDB without falling back to broken dictionary serialization.

einari added 3 commits June 23, 2026 08:34
The MongoDB driver has no built-in support for JsonObject. Without this
serializer it falls back to dictionary serialization and fails on read
because JsonObject has no parameterless constructor. The serializer
bridges BSON and JsonObject by round-tripping through a BsonDocument.
@einari einari added the patch label Jun 23, 2026
@github-actions

Copy link
Copy Markdown

NuGet packages for this PR, e.g. Cratis.Arc:
https://github.com/cratis/arc/packages/1655206?version=20.48.0

@einari einari merged commit 0c677f2 into main Jun 23, 2026
50 checks passed
@einari einari deleted the feat/json-object-bson-serializer branch June 23, 2026 06:51
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