"$set" sets the value of a key. If the key does not yet exist, it will be created. This can be handy for updating schema or adding user-defined keys.
The "$inc" modifier can be used to change the value for an existing key or to create a new key if it does not already exist.