Skip to content

Commit

Permalink
Add remaining AutoQueryInfo metadata props
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 11, 2020
1 parent e548765 commit 4ee0482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ServiceStack.Common/MetadataTypes.cs
Expand Up @@ -141,10 +141,12 @@ public class AuthInfo : IMeta
public class AutoQueryInfo : IMeta
{
public int? MaxLimit { get; set; }
public bool? UntypedQueries { get; set; }
public bool? RawSqlFilters { get; set; }
public bool? AutoQueryViewer { get; set; }
public bool? Async { get; set; }
public bool? OrderByPrimaryKey { get; set; }
public string NamedConnection { get; set; }
public List<AutoQueryConvention> ViewerConventions { get; set; }
public Dictionary<string, string> Meta { get; set; }
}
Expand Down
2 changes: 2 additions & 0 deletions src/ServiceStack.Server/AutoQueryFeature.cs
Expand Up @@ -188,10 +188,12 @@ public void Register(IAppHost appHost)
appHost.AddToAppMetadata(meta => {
meta.Plugins.AutoQuery = new AutoQueryInfo {
MaxLimit = MaxLimit,
UntypedQueries = EnableUntypedQueries.NullIfFalse(),
RawSqlFilters = EnableRawSqlFilters.NullIfFalse(),
Async = EnableAsync.NullIfFalse(),
AutoQueryViewer = EnableAutoQueryViewer.NullIfFalse(),
OrderByPrimaryKey = OrderByPrimaryKeyOnPagedQuery.NullIfFalse(),
NamedConnection = UseNamedConnection,
ViewerConventions = ViewerConventions,
};
});
Expand Down

0 comments on commit 4ee0482

Please sign in to comment.