Using MongoDB with Ruby: Using Documents
In the following subsections we shall add a document to MongoDB server, add a batch of documents, find a single document, find multiple documents, update documents, delete documents, and perform bulk operations. 1. Adding a Document In this section we shall add a single document to a MongoDB collection. The insert_one(document, options = {}) method [ [ ...]