static void Main(string[] args) { var mongoRepo = new MongoDBRepository<MongoDBContext>(); var x = mongoRepo.GetListEntities<FloussyTransaction>(p => p.TransactionList.Any(s => s.Error == ErrorType.Default)).Select(p => p.TransactionList.Where(s => s.Error == ErrorType.Default)).ToList(); var y = x.ToList(); //mongoRepo.MongoContext.GetCollection<FloussyTransaction>("FloussyTransaction").Aggregate(pipeline) }