mynt language
The language.
What Mynt can say beyond single SuiteScript calls: control flow, absence, searches, strings and bindings. Each area groups related syntax, and all of it is tracked apart from SuiteScript method coverage.
9 tracked language areas · 4 published on npm · 5 in the compiler only
Control flow
Absence
Searches
-
Ordering and cardinality
npm 0.1.0
order by, limit and first say how many rows a search returns and in which order, so the search fetches no more than that.
order by field [desc]limit nfirst -
Summary searches
npm 0.1.0
group by and named aggregates such as total = sum(amount) turn a search into a summary, with typed rows that carry exactly the groups and totals.
group by fieldselect name = sum(field) -
Summary criteria
compiler only
where can test aggregates as well as fields, such as sum(amount) > 10000, and Mynt filters rows before grouping and groups after it.
where field === x && sum(field) > n