When trying to bulk load a list of DBObject
's via insert, I get no implicit view available
.
collection.insert(listObjects) // listObjects is a List[DBObject]
[error]Test.scala:139: No implicit view available from List[com.mongodb.casba
h.Imports.DBObject] => com.mongodb.casbah.Imports.DBObject.
What does this error mean? How can I resolve?
Reference:
def insert [A] (docs: List[A])(implicit arg0: (A) ⇒ DBObject) : WriteResult