1.

Insert Row

Answer»

The MongoDB shell provides the following methods to insert rows:

db.docx.insert({
title: 'Post Five',
body: 'Body of post five,
category: 'Information',
tags: ['Information', 'events'],
user: {
name: 'David',
status: 'author'
},
date: Date()
})


Discussion

No Comment Found