Core
Framework v2.x
2

getCollection #

Available since 2.11.0

Returns the collection specified in the request.

Arguments #

Copied to clipboard!
getCollection (): string

Example #

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