I have an insert query:
Activity.insert ({
activityType: this.activityType,
bib: $("input#checkin").val(),
"legacy.eventId": Session.get("eventIdLegacy"),
checkpointNumber: Session.get("checkpointNumber")
});
Currently, it chokes on "legacy.eventId" with the message
Exception while invoking method '/activity/insert' Error: key legacy.eventId must not contain '.'
What is the correct syntax to insert into a nested mongoldb field?