MongoDB–Projecting and filtering out of a list

Recently I had an interesting MongoDB query that I wanted to write. I had a document that contained a list, and I wanted to query a specific item out of the list, returning only the fields that I wanted. Here’s a similar dataset: In this example, many different records may be created under the same … [Read more…]