Core
Framework v2.x
2

getRefresh #

Available since 2.11.0

Gets the refresh value.

Arguments #

getRefresh (defaultValue: string = 'false'): string
NameTypeDescription
defaultValue
string
Default value to return if the parameter is not set

Example #

const refresh = request.getRefresh();
// equivalent
const refresh = request.input.args.refresh;
//+ checks to make sure that "refresh" is of the right type
// and throw standard API error when it's not the case