Pontifications

where upsert means add it if not present, update if present

questionsColl.find_one_and_update(
    { id: q["id"] }, { "$set" => { answered_in_72_hours: answered_in_72_hours }},
    :upsert => true)

Leave a comment on github