Als result
is een JSON-tekenreeks, die .round
. aanroept zou undefined
teruggeven .
Probeer eerst de JSON naar een javascript-object te converteren:
result = JSON.parse(result);
models.Round.findById(result.round, function(err, roundref){
console.log(roundref);