Another side note, if I'm taking in one email to do document create and update document fields on one script. How easily can this be accomplished with the script properly?
input:
email: "xyz@xyz.org"
script:
db.score.update(
{ email: "xyz@xyz.org" },
{ email: "xyz@xyz.org",
$inc: { score: 1 }
}
)
db.scorelog.insert(
{
email: "xyz@xyz.org",
category: "football",
method: "head"
)