1

I want to unset a field in simpleSchema but the field is neither shown in set or unset under hooks

before:{
 update:function(mod){
   console.log(mod["$set"]);
   console.log(mod["$unset"]) 

This is what I have done to unset

'mobility.walkerType':{
  type:String,
  optional:true,
  label:"WalkerType",
  autoValue:function(){
    if(this.siblingField('type').value != "walker"){
      this.unset();
    }
  },
}
Sai Ram
  • 4,196
  • 4
  • 26
  • 39
  • Trying returning `undefined` explicitly after `this.unset()`. Another user ran into this recently and I have a suspicion that might do it? – Stephen Woods Mar 05 '16 at 13:54

0 Answers0