Cookies help us deliver our services. By using our services, you agree to our use of cookies. More information

Difference between revisions of "AGGREGATE Movies Tutorial"

From NoSQLZoo
Jump to: navigation, search
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
</div>
 
 
<pre class=def>
 
<pre class=def>
 
db.world.aggregate([
 
db.world.aggregate([

Revision as of 00:23, 15 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'
    }}
])