var query = Query<MongoData>.EQ(e => e.name, someString);
var entity = collection.FindOneAs<MongoData>(query);
And this returns the MongoData object in collection where the property name matches the string (someString) I send it.
I'd like to add another query to this to also get the entity that matches name and files.author
collection is an List, and files is an List inside of collection.
Currently, I'm doing it the hard way and just looping through entity.files until I find a match, but this is painful.
So given a MongoData List that contains one object with a name of X and an files list that contains an author of Y, I'd like to return this one.