mongodb - Mongo DB: How to delete documents in mongo db using spark scala -


as per our requirement using mongo db 3.4 spark 2.0 , scala. want delete document reference id through spark scala.

we looking option such below, use update logic in 1 line:

dfsurvey.write.format("com.mongodb.spark.sql").mode("append").option("replacedocument", "false").save()

or other better option directly delete documents in mongo db collection connected through spark , scala.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -