getLangParam #
Available since 2.11.0
Returns the lang
param of the request.
Arguments #
getLangParam (): 'elasticsearch' | 'koncorde';
Example #
const lang = request.getLangParam();
// equivalent
const lang = request.input.args.lang;
//+ checks to make sure that "lang" is of the right type
// and throw standard API error when it's not the case
Edit this page on Github(opens new window)