So I'm trying to insert a new field into MongoDB, and whilst it will accept my Javascript variable as data, it won't accept it as a new field name:
function appendInformation(question, answer) {
Sessions.update({ _id: Id }, { question : answer });
}
It inserts the correct answer, but is listed in the doc as question: {answer} not {question} : {answer}