What is mongoDB?

The latest project that I am working on uses mongoDB as the database. mongoDB is a document-oriented database which is quiet different compare to relational database such as SQL. It stores full document(BSON format which is very similar to JSON) and you will be able to query by sending key-value bases BSON object. For example,

db.products.find({})

returns every document in products collection. but you will be able to send query like.

db.products.find({'kind' : 'apparel'})

This query looks for ‘kind’ attribute and return document where ‘kind’ attribute is ‘apparel’.

Advertisements

One comment


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s