How to execute update ($set) queries in MongoDB Compass tool?
I had the same issue, it looks like a simple feature to implement (since document updates are possible) but... AFAIK there is no such option in compass, you can do it through mongodb shell (CLI client).
UPDATE: And it seems that it is possible now, although in beta, in the latest version (1.22.1) there is a "_MongoSH Beta" in the bottom left corner of the window.Thx to @Boštjan Pišler for the hint about a new feature.
The tool was recently updated with a shell (currently in beta) which is accessible by clicking the dark bar on the bottom of the window "_MongoSH"