I have seen a few answers to similar questions, however I cannot seem to work out how to apply the answer to my issue.
var allposts = _context.Posts
EF Core 5.0 is introducing Filtered Include soon.
var blogs = context.Blogs .Include(e => e.Posts.Where(p => p.Title.Contains("Cheese"))) .ToList();
Reference: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew#filtered-include