MongoDB inserting scala Map throws exception -
i have code snippet
val dbobj: basicdbobject = new basicdbobject("mymap",map) //here map scala.collection.mutable.map[string,int] dbops.bulkwrite.find(document).upsert().update(new basicdbobject("$inc", dbobj))
this throws exception:
org.bson.codecs.configurtion.codecconfiguration: can't find codec class scala.collection.immutable.maplike$$anon$2
the first thing noticed exception says immutable map while have mutable map have no idea what's wrong help!
Comments
Post a Comment