I am looking for convinient way to check if object already exists in collection. For now the only way that i have found is
type result interface{} var res re
count, err = collection.Find(bson.M{field: value}).Count()