-
Type: Bug
-
Resolution: Unresolved
-
Priority: Blocker - P1
-
None
-
Affects Version/s: 3.1.0
-
Component/s: None
-
None
-
Dotnet Drivers
Summary
We want to reduce the amount of requests that we need to update documents by using updates with an aggregation pipeline. The main stage is a $set stage that sets new values on a sub-document based upon the current values, e.g. increments a value (the real life example is not so simple, it includes a comparison of a timestamp, so using a simple update with an $inc operator is not an option).
Please see attached file for examples that raises a NotSupportedException with the reason that the serializers do not match.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
Verified the behavior with v3.0 and v3.1.
How to Reproduce
See attached sample.
- depends on
-
CSHARP-5461 Add targetSerializer parameter to Translate methods
- In Progress
- duplicates
-
CSHARP-4967 Aggregate $set stage for fails with nested document
- Closed
- is related to
-
CSHARP-4967 Aggregate $set stage for fails with nested document
- Closed
- related to
-
CSHARP-4820 Configured serializer is not called in some cases, resulting in incorrect serialization
- Blocked