Basic MongoDB queries

Intro This is a bit of a cheatsheet and collection of common MongoDB queries with examples. I've selected a document structure that might be used to describe a bunch of movies. It contains strings, numbers, dates and arrays as both values and nested docs. Database structure Movies = [{ _id: ObjectId("507f191e810c19728aa120bf"), title: 'Super Troopers', director: 'Jay Chandrasekhar',…

Read more