MongoDB find() function


  Translation results:

find

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

v.find;discover;find out;discover

n.find something ;The person who was discovered

MongoDB find() functionsyntax

Function:Used for MongoDB query data;

Syntax:>db.COLLECTION_NAME.find()

MongoDB find() functionexample

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

Popular Recommendations

Home

Videos

Q&A