I have users, with properties, which are Map[String, String], the user is just:
case class User ( _id: String, properties: Map[String, String] )
I get an event that tells me to remove or add to the properties and want this to create the object if it does not exist.
object UsersDAO extends SalatDAO ...
I understand how to use the upsert flag in the DAO but not how to $unset some property's value? Do I have to read the object and create a new one with the correct properties? I thought this is what $set and $unset were designed to avoid.