Difference between revisions of "AGGREGATE Movies Tutorial"
From NoSQLZoo
Line 5: | Line 5: | ||
<div class=q data-lang="mongo"> | <div class=q data-lang="mongo"> | ||
Show the details of the movie Casablanca | Show the details of the movie Casablanca | ||
− | |||
<pre class=def> | <pre class=def> | ||
db.world.aggregate([ | db.world.aggregate([ |
Revision as of 23:23, 14 October 2016
Investigating the Movie Database
The movie database includes thousands of movies with documents such as:
Casablanca
Show the details of the movie Casablanca
db.world.aggregate([ {$match:{ title:'Casablanca' }}, ])
db.world.aggregate([ {$match:{ title:'Casablanca' }} ])