This is the general availability release for the 1.1.0 version of the analyzer.
The main new features in 1.1.0 include:
var filterScore = Builders<Movie>.Filter.Gt(p => p.Score, 5); var filterTitle = Builders<Movie>.Filter.Regex(p => p.Title, "Summer"); var filterGenre = Builders<Movie>.Filter.Eq(p => p.Genre, Genre.Comedy); // MQL is dispalyed for each filter variable var filterCombined = filterTitle | filterScore | filterGenre; // MQL for the combined filter is displayed moviesCollection.Find(filterCombined);
// MQL is displayed for the Fluent API methods _ = moviesCollection .Find(u => u.Producer.Contains("Nolan")) .SortBy(u => u.Score) .ThenBy(u => u.Title);
// MQL is displayed for LINQ expressions using query syntax var queryable = from movie in moviesCollection group movie by movie.Genre into g select g;
// IndexKeys builder is analyzed _ = Builders<User>.IndexKeys.Ascending(x => x.Age); _ = Builders<Shape>.IndexKeys.Geo2D(u => u.Point);
// Projection builder is analyzed _ = Builders<User>.Projection.Include(u => u.Age); _ = Builders<Person>.Projection.Expression(u => u.Address);
The full list of JIRA issues resolved in this release is available at: