From Boldcore's wiki
Revision as of 08:54, 15 March 2017 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MongoDB

Nothing useful

Raised on MySQL, I am new to mongo, and I need to get more familiar with the syntax. Just a random pastes from cmdline.

/* Insert shit */
> db.pers.insert("name":"Peter","age":"7","colour":"red")

/* Retrieve shit */

> db.pers.find({"name":"Peter"}).pretty()
{
        "_id" : ObjectId("58c950e7fe9fddf65dd0e8d5"),
        "name" : "Peter",
        "age" : "7",
        "colour" : "red"
}
>