Framework v2.x

getLangParam #

Available since 2.11.0

Returns the lang param of the request.

Arguments #

Copied to clipboard!
getLangParam (): 'elasticsearch' | 'koncorde';

Example #

Copied to clipboard!
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