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
Post a Comment