mongodb europe 2016 - mongodb 3.4 preview and introduction to mongodb atlas
TRANSCRIPT
#MDBE16
Extend: $lookup
} , “product_details” : [{
“_id” : 7, “title” : “My Memoir” }]
} { “_id” : 2, “product_id” : 7
, “product_details” : [{
“_id” : 5, “title” : “A great book” }]
{ “_id” : 1, “product_id” : 5
#MDBE16
Extend: Read-Only Views
> db.rides.findOne()
{ "_id" : ObjectId("572bb8572b288919b6a47779"), "startStation" : 498, "endStation" : 253, "bike" : 23691 }
> db.createView( "rides_safe", "march_rides", [{$project: {'user.ssn': 0}}] );
> db.rides_safe.findOne()
{ "_id" :ObjectId("572bb8572b288919b6a47779"), "startStation" : 498, "endStation" : 253, "bike" : 23691, "user_ssn" : "123-45-6789" }