Phương thức pretty() trong MongoDB
Cú pháp
>db.mycol.find().pretty()Ví dụ
>db.mycol.find().pretty()
{
"_id": ObjectId(7df78ad8902c),
"title": "MongoDB Overview",
"description": "MongoDB is no sql database",
"by": "tutorials point",
"url": "http://www.tutorialspoint.com",
"tags": ["mongodb", "database", "NoSQL"],
"likes": "100"
}
>PreviousPhương thức find() trong MongoDBNextTruy vấn trong MongoDB mà tương đương mệnh đề WHERE trong RDBMS
Last updated