Hi @Nick, welcome!
You should be able to query UUID and BinData from MongoDB Compass v1.20+ (COMPASS-1083). Try using {"field": BinData(0, "valid_base64")}
For example, using the current stable version Compass v1.20.5:
You can also store/retrieve using UUIDs (subtype 4) for IDs.
Regards,
Wan.