I'm trying to add the property 'board' (an object) for my model by using a function so that I can utilize multiple values from the request body to create the object.
Obj.create({
name: req.body.name,
admin: req.user.id.
board: function(){
var results = []
rounds = req.body.rounds,
teams = req.body.teams;
for(x=0;x<rounds;x++){
for(t=0;t<teams.length;t++){
results.push({
team: teams[t]
});
}
}
}
});
When I run this, I am given the exception of
Anchor does not support functions yet!