I find the perfect way to pass the actions for the mongo schema