why can I not use a variable to access something inside my document? if I hard code the field it works but using a variable it does not.
building = "AS"
room = "243"
item = "whiteBoard.votes[0]"
RI.findOne({$and: [{"building": building }, {"room": room}]}, (err, x) => {
console.log(x.whiteBoard.votes[0]) //works
console.log(x[item]) //undefined