How can I serialize mongodb UpdateDefinition or Filter?
I’m processing thousands of rows using BulkWriteAsync(writeModels) and it runs for a long time and then aborts with “The positional operator did not find the match needed from the query”. My theory is that somehow it’s something wrong a subset of documents (or perhaps the updatedefinition was misconfigured for some docs). However, from a WriteModel object I cannot find any way to serialize it to return the filter and updatedefinition. I have tried .toString(), .toJson(), .toBsonDocument().
How can I serialize C# mongodb UpdateDefinition or Filter?
I’m processing thousands of rows using BulkWriteAsync(writeModels) and it runs for a long time and then aborts with “The positional operator did not find the match needed from the query”. My theory is that somehow it’s something wrong a subset of documents (or perhaps the updatedefinition was misconfigured for some docs). However, from a WriteModel object I cannot find any way to serialize it to return the filter and updatedefinition. I have tried .toString(), .toJson(), .toBsonDocument().