The following is my codes to remove documents:
var filterAddInfo = builder.Lte("Claim_Date", branchEntity.Report_Date);
mongoDB.BranchPerformance.FindOneAndUpdate(
filterMain,
Builders<BsonDocument>.Update.PullFilter("Add_Info", filterAddInfo));
It's working with MongoDB, but it's not working if I connect to Azure MongoDB Api. It prompt:
Command findAndModify failed: Operator ''OPERATOR_PULL' with condition' is not supported..
Seems like condition (Eg. lte is not supported in Azure MongoDB Api). May I know is there any alternative way to change my codes cater for this condition?
We do not yet support the pull operator with a condition specified. Please reach out to askcosmosmongoapi [at] microsoft [dot] com with a sample document, and we'll be happy to work with you on a workaround.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.