I am very new to scala spark and Mongo. while trying to load some data to MongoDB by spark with the following code.
import com.mongodb.spark.config.WriteConfig im