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

AGGREGATE Movies Tutorial

From NoSQLZoo
Revision as of 23:23, 14 October 2016 by Andr3w (talk | contribs) (→‎Casablanca)
Jump to: navigation, search

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'
    }}
])