0

i'm new to mongodb,while using connection of mongodb with java both insert and put methods are used to insert a document in a collection of mongodb. So what is the difference in using insert and put option

Rafiq
  • 740
  • 1
  • 5
  • 17
ani
  • 177
  • 1
  • 2
  • 7
  • 2
    possible duplicate of [What is the difference between save and insert in Mongo DB?](http://stackoverflow.com/questions/16209681/what-is-the-difference-between-save-and-insert-in-mongo-db) – Smajl Aug 20 '15 at 11:08
  • both are used for inserting purpose – Amit singh Aug 20 '15 at 11:50
  • please show your code, I don't understand on wich object you use put(). – Simulant Aug 20 '15 at 12:25

0 Answers0