Teneo Developers
Table of Contents
Was this page helpful?

Share to

Meta-parameter

Independent of the TQL query that is going to run, it may be important to use Teneo Query Language to present the data in a certain way or to run a limited form of the query, e.g. to test it before putting it into operation. This is where meta-parameters come in. Meta-parameters are optional instructions that you can add to your query. They generally affect the behavior of TQL, rather than operating directly on the data.

In our query the meta-parameter is limit 30, telling TQL to only show 30 results:

TQL - Meta Parameter

tql

1la s.id, t.e.userInput, t.e2.answerText:  t.e.userInput != "" limit 30
2

TQL - Limit

The three meta-parameters available in TQL are:

Meta-parameter nameDescription
order bySort results by a certain property or variable, either ascending or descending
limitLimit the query to n results (to save processing time if you don't need to see all the results)
sampleShow a sample of results (to save processing time; also when first testing a query to confirm that it does get results)

Meta parameters are added to the end of a valid TQL query with no separator (comma). An exception is the meta-parameter sample, which is placed at the beginning of the query.