-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Implementation
-
None
Hey!
Referring o the commented line ..// << "ended"...
uncommenting this will lead to the error message in the comment of the same line. The message is not helping.
bsoncxx::document::value filter_document = document { } << "_id" << bsoncxx::oid { strJobID } << finalize; bsoncxx::document::value update_doc = document{} << "$set" << open_document << "meta" << bsoncxx::types::b_document{mongoMetaData.view()} << "ended" << bsoncxx::types::b_bool { bFinishBecauseOnlyFast } << close_document // << "ended" << bsoncxx::types::b_bool { true } // mongoc: mongoc_bulk_operation_update_one(): update_one only works with $ operators. << "ended" << "true" << finalize; ...update_one(filter_document.view(), update_doc.view());