Class | Mongoid::Persistence::Operations::Insert |
In: |
lib/mongoid/persistence/operations/insert.rb
|
Parent: | Object |
Insert is a persistence command responsible for taking a document that has not been saved to the database and saving it.
The underlying query resembles the following MongoDB query:
collection.insert( { "_id" : 1, "field" : "value" }, false );