find

英[faɪnd] 美[faɪnd]

v.find;discover;find out;discover

n.find something ;The person who was discovered

MongoDB find() function syntax

Function:Used for MongoDB query data;

Syntax:>db.COLLECTION_NAME.find()

MongoDB find() function example

> db.col.find().pretty()
{
        "_id" : ObjectId("56063f17ade2f21f36b03133"),
        "title" : "MongoDB 教程",
        "description" : "MongoDB 是一个 Nosql 数据库",
        "by" : "php中文网",
        "url" : "//m.sbmmt.com",
        "tags" : [
                "mongodb",
                "database",
                "NoSQL"
        ],
        "likes" : 100
}