AutoQuery - different MaxLimit for 1 endpoint

I understand that MaxLimit can be set when adding AutoQueryFeature in Startup.cs. We are doing this:

Plugins.Add(new AutoQueryFeature
            MaxLimit = 100, 
            IncludeTotal = true

When using IAutoQueryDb.ExecuteAsync(), is it possible to specify a different MaxLimit?

You should be able to use a custom AutoQuery implementation:

public object Any(FindMovies query)
    using var db = AutoQuery.GetDb(query, base.Request);
    var q = AutoQuery.CreateQuery(query, base.Request, db);
    return AutoQuery.Execute(query, q, base.Request, db);
1 Like