Skip to main content

Function: questions()

Call Signature​

function questions(
context,
siteUrl,
activityId,
options
): Promise<BankQuestions<ListPage<BankQuestion>>>;

Defined in: areas/questions/banks.ts:158

A bank's categories and every question in them, category by category. With limit, questions is a page of them in that order (see "Long lists" in the docs' concepts), the categories all: the bank is read category by category until the page is full, each category whole and cut (its page counts aren't reliable enough to skip by).

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
optionsWithLimit<PageOptions>

Returns​

Promise<BankQuestions<ListPage<BankQuestion>>>

Call Signature​

function questions(
context,
siteUrl,
activityId,
options?
): Promise<BankQuestions<BankQuestion[]>>;

Defined in: areas/questions/banks.ts:159

A bank's categories and every question in them, category by category. With limit, questions is a page of them in that order (see "Long lists" in the docs' concepts), the categories all: the bank is read category by category until the page is full, each category whole and cut (its page counts aren't reliable enough to skip by).

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
options?WithoutLimit<PageOptions>

Returns​

Promise<BankQuestions<BankQuestion[]>>

Call Signature​

function questions(
context,
siteUrl,
activityId,
options?
): Promise<BankQuestions<
| BankQuestion[]
| ListPage<BankQuestion>>>;

Defined in: areas/questions/banks.ts:160

A bank's categories and every question in them, category by category. With limit, questions is a page of them in that order (see "Long lists" in the docs' concepts), the categories all: the bank is read category by category until the page is full, each category whole and cut (its page counts aren't reliable enough to skip by).

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
options?PageOptions

Returns​

Promise<BankQuestions< | BankQuestion[] | ListPage<BankQuestion>>>