Hi All,

I am having problem while updating MongoDB using GO. I used the below 
format for the query :-

update := bson.M{
"$set": bson.M{
"reputation":      newRepOld,
"smtp_send_limit": quota,
"last_cron_time":  currentCronTime,
"plain_text":      0,
"smtp_count": bson.M{
"domain_stats": domainStats,
},
},
}

As a results, this query is executed successfully without any error but all 
other fields present in "smtp_count" got removed and left with only 
"domain_stats" field.

Please advice for any suggestion.

Thanks & Regards
Syed Qasim Rizvi


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to