Can someone suggest how to update multiple documents while using regex in filter query of update_many? Here is my query:
db['collection'].update_many({"col1":{ "$regex" : "NO" , "$options" : "i"}},{"$set":{"col2":"NO"}})
Can someone suggest how to update multiple documents while using regex in filter query of update_many? Here is my query:
db['collection'].update_many({"col1":{ "$regex" : "NO" , "$options" : "i"}},{"$set":{"col2":"NO"}})
Copyright © 2021 Jogjafile Inc.
Here is a quick fix that I used: