public List <QueryTokenTS> SubTokens([Required, FromBody] SubTokensRequest request) { var qn = QueryLogic.ToQueryName(request.queryKey); var qd = QueryLogic.Queries.QueryDescription(qn); var token = request.token == null ? null: QueryUtils.Parse(request.token, qd, request.options); var tokens = QueryUtils.SubTokens(token, qd, request.options); return(tokens.Select(qt => new QueryTokenTS(qt, recursive: false)).ToList()); }
public List <QueryTokenTS> SubTokens(SubTokensRequest request) { var qn = QueryLogic.ToQueryName(request.queryKey); var qd = DynamicQueryManager.Current.QueryDescription(qn); var token = request.token == null ? null: QueryUtils.Parse(request.token, qd, request.options); var tokens = QueryUtils.SubTokens(token, qd, request.options); return(tokens.Select(qt => new QueryTokenTS(qt, recursive: false)).ToList()); }
public List<QueryTokenTS> SubTokens(SubTokensRequest request) { var qn = QueryLogic.ToQueryName(request.queryKey); var qd = DynamicQueryManager.Current.QueryDescription(qn); var token = request.token == null ? null: QueryUtils.Parse(request.token, qd, request.options); var tokens = QueryUtils.SubTokens(token, qd, request.options); return tokens.Select(qt => new QueryTokenTS(qt, recursive: false)).ToList(); }